///
interface ElectronAPI {
openFile: (options?: Record) => Promise;
saveFile: (options?: Record) => Promise;
openProject: () => 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?: ElectronAPI;
}