28 lines
1.1 KiB
TypeScript
28 lines
1.1 KiB
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare global {
|
|
interface Window {
|
|
__OCSWITCH_WAILS__?: boolean
|
|
go?: {
|
|
main?: {
|
|
App?: {
|
|
Meta: () => Promise<Record<string, string>>
|
|
Overview: () => Promise<import('./types').Overview>
|
|
Providers: () => Promise<import('./types').ProviderView[]>
|
|
Aliases: () => Promise<import('./types').AliasView[]>
|
|
DoctorRun: () => Promise<import('./types').DoctorRunResult>
|
|
ProxyStatus: () => Promise<import('./types').ProxyStatusView>
|
|
StartProxy: () => Promise<import('./types').ProxyStatusView>
|
|
StopProxy: () => Promise<import('./types').ProxyStatusView>
|
|
DesktopPrefs: () => Promise<import('./types').DesktopPrefsView>
|
|
SavePrefs: (input: import('./types').DesktopPrefsView) => Promise<import('./types').DesktopPrefsView>
|
|
PreviewSync: (input: import('./types').SyncInput) => Promise<import('./types').SyncPreview>
|
|
ApplySync: (input: import('./types').SyncInput) => Promise<import('./types').SyncResult>
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
export {}
|