import type { Target, CdpMessage } from "./target"; /** Per-session state shared across multiple domains. Each field is a * mutable holder so domains can read/write the same value through the * closure-captured object. State used by exactly one domain stays inside * that domain's installer instead of going here. */ export type DomainCtx = { lastScriptEval: { value: string; }; pageExecCtx: { id: number; isPage: boolean; }; lastConsoleApiCalled: { value: any | null; }; }; export declare function makeDomainCtx(): DomainCtx; /** Reply to a tools-side request with `result` and swallow the message so * it's never forwarded to Safari. Used by ack-and-stub filters. */ export declare function swallowWith(t: Target, msg: CdpMessage, result: any): Promise;