2025-04-29 18:36:29 +08:00
|
|
|
export interface ElectronAPI {
|
2025-04-30 23:09:05 +08:00
|
|
|
checkUrlAvailable: (url: string) => Promise<{ ok: boolean; status: number; error?: string }>;
|
2025-04-30 23:31:36 +08:00
|
|
|
setWebviewCookie: (url: string, cookie: string) => Promise<boolean>;
|
2025-04-30 23:09:05 +08:00
|
|
|
setSessionStorage: (key: string, value: string) => void;
|
|
|
|
getSessionStorage: (key: string) => string | null;
|
|
|
|
removeSessionStorage: (key: string) => void;
|
|
|
|
clearSessionStorage: () => void;
|
2025-04-29 18:36:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
declare global {
|
|
|
|
interface Window {
|
|
|
|
electronAPI: ElectronAPI;
|
|
|
|
}
|
|
|
|
}
|