import type { BrowserWindow } from 'electron'; import type { Disposable, JsonValue, MaybePromise, TypedIpcRegistry } from '../types.js'; /** * In-memory `TypedIpcRegistry` impl —— Phase 2 不接真 Electron `ipcMain`,提 * 供 main-process 同进程 `handle` / `on` / `send` / `invoke` 的 fake。 * * - `handle` / `invoke` 与 `on` / `send` 是**独立 channel space**:send 只触 * 发 on listener;invoke 只调 handle handler;同 channel 名互不影响。 * - audience / validator option Phase 2 不强制,仅 accept;Phase 3 接 trusted * sender set 时再实施。 * * @internal */ export declare class InMemoryTypedIpcRegistry implements TypedIpcRegistry { private readonly handlers; private readonly listeners; handle(channel: string, handler: (...args: A) => MaybePromise, _options?: { validator?: (args: unknown[]) => A; }): Disposable; on

(channel: string, listener: (payload: P) => void): Disposable; send(_target: 'mainWindow' | BrowserWindow, channel: string, payload: JsonValue): void; /** @internal main-internal helper used by Phase 2 setup tests / framework */ invoke(channel: string, ...args: JsonValue[]): Promise; } //# sourceMappingURL=ipc-registry-memory.d.ts.map