import type { RemoteConsoleClientConnectConfig, RemoteConsoleClientRuntime, RemoteConsoleClientTarget } from './remote-console-client.types.js'; /** * @purpose Connects a console-like browser target to a remote endpoint without breaking local console behavior. * @param consoleTarget Console-like target to patch for log mirroring. * @param config URL-centric transport configuration for remote endpoint and optional source tag. * @throws {Error} When URL is invalid or console target does not expose required logging methods. * @returns Runtime controls attached to console target under `__remote__.disconnect`. * @sideEffect Monkey patch: replaces log/info/warn/error/debug methods on target. * @sideEffect Timer: starts periodic batch flush every five seconds. * @sideEffect Network: sends envelope commands to configured URL. * @sideEffect Browser lifecycle: subscribes to pagehide and beforeunload for unload-safe shutdown. */ export declare function connectRemoteConsoleClient(consoleTarget: RemoteConsoleClientTarget, config: RemoteConsoleClientConnectConfig): RemoteConsoleClientRuntime; /** * @purpose Public client facade exposing only browser connect API for remote-console domain. * @consumer Browser page runtime */ export declare const remoteConsoleClient: { connect: typeof connectRemoteConsoleClient; };