/** * Weavetab — cdp/omni_broker.ts * Omni-Context Execution Broker * Handles Target.setAutoAttach to run code in cross-origin iframes. * Weavetab by fy2ne */ import CDP from "chrome-remote-interface"; /** * Initializes the Omni-Context Broker for a parent page session. * Automatically attaches to all OOPIFs (Out-of-Process Iframes) and caches their CDP clients. */ export declare function initOmniBroker(parentSession: CDP.Client, parentTargetId: string, port: number): Promise; /** * Executes a CDP command across all known iframe contexts if it fails in the top-level context. */ export declare function omniEvaluate(parentSession: CDP.Client, parentTargetId: string, expression: string, returnByValue?: boolean): Promise; export declare function getOmniSessions(parentTargetId: string): Map | undefined; export declare function cleanupOmniBroker(parentTargetId: string): void;