2026-03-03 06:31:04 -05:00
|
|
|
/// <reference types="vite/client" />
|
|
|
|
|
|
2026-04-15 21:51:05 -06:00
|
|
|
interface ImportMetaEnv {
|
|
|
|
|
readonly VITE_BACKEND_PORT?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface ImportMeta {
|
|
|
|
|
readonly env: ImportMetaEnv;
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-06 10:53:27 -06:00
|
|
|
interface ModelInfo {
|
|
|
|
|
name: string;
|
|
|
|
|
path: string;
|
|
|
|
|
size_bytes: number;
|
|
|
|
|
kind: string;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-15 17:40:27 -06:00
|
|
|
interface DesktopAPI {
|
2026-03-03 06:31:04 -05:00
|
|
|
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>;
|
2026-03-03 06:31:04 -05:00
|
|
|
getBackendUrl: () => Promise<string>;
|
|
|
|
|
encryptString: (data: string) => Promise<string>;
|
|
|
|
|
decryptString: (encrypted: string) => Promise<string>;
|
2026-03-26 00:58:57 -06:00
|
|
|
ensureModel: (modelName: string) => Promise<string>;
|
|
|
|
|
transcribe: (filePath: string, modelName: string, language?: string) => Promise<any>;
|
2026-03-03 06:31:04 -05:00
|
|
|
readFile: (path: string) => Promise<string>;
|
|
|
|
|
writeFile: (path: string, content: string) => Promise<boolean>;
|
2026-05-06 01:35:42 -06:00
|
|
|
activateLicense: (key: string) => Promise<any>;
|
|
|
|
|
getAppStatus: () => Promise<any>;
|
|
|
|
|
deactivateLicense: () => Promise<void>;
|
|
|
|
|
hasLicenseFeature: (feature: string) => Promise<boolean>;
|
2026-05-06 10:53:27 -06:00
|
|
|
listModels: () => Promise<ModelInfo[]>;
|
|
|
|
|
deleteModel: (path: string) => Promise<void>;
|
2026-03-03 06:31:04 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface Window {
|
2026-04-15 17:40:27 -06:00
|
|
|
electronAPI: DesktopAPI;
|
2026-03-03 06:31:04 -05:00
|
|
|
}
|