增加语音对话功能
This commit is contained in:
Vendored
+31
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user