增加语音对话功能

This commit is contained in:
yhy
2026-08-29 22:13:55 +08:00
parent 1ffa069151
commit 3a2438f566
51 changed files with 6207 additions and 3 deletions
+31
View File
@@ -23,10 +23,13 @@ declare const Zotero_Tabs: {
declare const PathUtils: {
join: (...parts: string[]) => string;
parent: (path: string) => string;
tempDir: string;
};
declare const IOUtils: {
exists: (path: string) => Promise<boolean>;
read: (path: string) => Promise<Uint8Array>;
readUTF8: (path: string) => Promise<string>;
writeUTF8: (path: string, data: string) => Promise<void>;
remove: (path: string) => Promise<void>;
@@ -34,4 +37,32 @@ declare const IOUtils: {
path: string,
options?: { createAncestors?: boolean; ignoreExisting?: boolean },
) => Promise<void>;
stat: (path: string) => Promise<{ size: number }>;
};
declare const Services: {
appinfo: {
OS: string;
};
};
declare const Components: {
classes: Record<string, { createInstance: (iface: unknown) => unknown }>;
interfaces: { nsIProcess: unknown };
utils: {
isDeadWrapper: (obj: unknown) => boolean;
};
};
interface MozNsIFile {
exists: () => boolean;
isExecutable?: () => boolean;
}
interface MozNsIProcess {
init: (file: MozNsIFile) => void;
run: (blocking: boolean, args: string[], count: number) => void;
runw: (blocking: boolean, args: string[], count: number) => void;
exitValue: number;
startHidden: boolean;
}