import type { CreatePublishJobResponse, DesktopAccountInfo, DesktopPublishTaskListResponse, DesktopRuntimeSessionSyncRequest, ListDesktopPublishTasksParams, } from "@geo/shared-types"; import type { DesktopObservedRequest } from "../shared/network-debug"; import type { DesktopRuntimeSnapshot } from "./types"; export {}; declare global { interface Window { desktopBridge: { app: { ping(): Promise; deviceInfo(): Promise<{ device_name: string; os: string; cpu_arch: string }>; runtimeSnapshot(): Promise; bindPublishAccount(platformId: string): Promise; refreshRuntimeAccounts(): Promise; openPublishAccountConsole(account: { id: string; platform: string; platformUid: string; displayName: string; }): Promise; unbindPublishAccount(accountId: string, syncVersion: number): Promise; listPublishTasks(params?: ListDesktopPublishTasksParams): Promise; retryPublishTask(taskId: string): Promise; openExternalUrl(url: string): Promise; syncRuntimeSession(session: DesktopRuntimeSessionSyncRequest | null): Promise; releaseRuntimeSession(revoke?: boolean): Promise; setWindowMode(mode: "login" | "main"): Promise; onRuntimeInvalidated( listener: (event: { reason: "account-health"; at: number }) => void, ): () => void; onNetworkObserved(listener: (event: DesktopObservedRequest) => void): () => void; }; }; } }