Files
TalkEdit/frontend/src/vite-env.d.ts

20 lines
758 B
TypeScript
Raw Normal View History

/// <reference types="vite/client" />
2026-04-15 17:40:27 -06:00
interface DesktopAPI {
openFile: (options?: Record<string, unknown>) => Promise<string | null>;
saveFile: (options?: Record<string, unknown>) => Promise<string | null>;
openProject: () => Promise<string | null>;
2026-03-30 18:36:41 -06:00
saveProject: () => Promise<string | null>;
getBackendUrl: () => Promise<string>;
encryptString: (data: string) => Promise<string>;
decryptString: (encrypted: string) => Promise<string>;
ensureModel: (modelName: string) => Promise<string>;
transcribe: (filePath: string, modelName: string, language?: string) => Promise<any>;
readFile: (path: string) => Promise<string>;
writeFile: (path: string, content: string) => Promise<boolean>;
}
interface Window {
2026-04-15 17:40:27 -06:00
electronAPI: DesktopAPI;
}