/** * The preload script runs in a renderer context, so `window` exists at runtime. * * But `tsconfig.node.json` — which covers main *and* preload — deliberately * omits the DOM lib, so that main-process code cannot accidentally reference a * `document` that is not there. Pulling the whole DOM in to satisfy one call * would give up that guarantee. * * So only the single method the preload actually needs is declared. */ declare const window: { postMessage(message: unknown, targetOrigin: string, transfer?: MessagePort[]): void }