interface Window { /** * After analyzing the `exposeInMainWorld` calls, * `packages/preload/exposedInMainWorld.d.ts` file will be generated. * It contains all interfaces. * `packages/preload/exposedInMainWorld.d.ts` file is required for TS is `renderer` * * @see https://github.com/cawa-93/dts-for-context-bridge */ readonly apis: { db: { getDoc: (id: string) => Promise; applyDocUpdate: (id: string, update: Uint8Array) => Promise; addBlob: (workspaceId: string, key: string, data: Uint8Array) => Promise; getBlob: (workspaceId: string, key: string) => Promise; deleteBlob: (workspaceId: string, key: string) => Promise; getPersistedBlobs: (workspaceId: string) => Promise; }; workspace: { list: () => Promise; delete: (id: string) => Promise; }; openLoadDBFileDialog: () => Promise; openSaveDBFileDialog: () => Promise; onThemeChange: (theme: string) => Promise; onSidebarVisibilityChange: (visible: boolean) => Promise; onWorkspaceChange: (workspaceId: string) => Promise; openDBFolder: () => Promise; getGoogleOauthCode: () => Promise<{ requestInit: RequestInit; url: string; }>; updateEnv: (env: string, value: string) => void; }; readonly appInfo: { electron: boolean; isMacOS: boolean; }; }