import type { Snapshot, ShortcutId } from "../shared/ipc"; import type { BlockerKind } from "../shared/power-policy"; declare global { interface Window { api: { hub: { snapshot: () => Promise; register: (id: ShortcutId, accelerator: string) => Promise; trigger: (id: ShortcutId) => Promise; setResidency: (enabled: boolean) => Promise; closeWindow: () => Promise; showWindow: () => Promise; startBlocker: (kind: BlockerKind) => Promise; stopBlocker: (id: number) => Promise; applyAutostart: ( enabled: boolean, dryRun: boolean, ) => Promise; quit: () => Promise; refresh: () => Promise; onAction: ( callback: (event: { kind: string; detail: string; at: number; }) => void, ) => () => void; }; }; __prepareShots?: ( stage: "shortcuts" | "conflict" | "energy", ) => Promise; __smoke?: () => Promise; } } export {};