///
interface ImportMetaEnv {
readonly VITE_BACKEND_PORT?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
interface DesktopAPI {
openFile: (options?: Record) => Promise;
saveFile: (options?: Record) => Promise;
openProject: () => Promise;
saveProject: () => Promise;
getBackendUrl: () => Promise;
encryptString: (data: string) => Promise;
decryptString: (encrypted: string) => Promise;
ensureModel: (modelName: string) => Promise;
transcribe: (filePath: string, modelName: string, language?: string) => Promise;
readFile: (path: string) => Promise;
writeFile: (path: string, content: string) => Promise;
}
interface Window {
electronAPI: DesktopAPI;
}