import type { Connector } from "../../index.js"; import { type RendererState } from "./protocol.js"; export declare const DEFAULT_REACTLYNX_IDLE_MS = 700; export declare const DEFAULT_REACTLYNX_MAX_MS = 5000; export interface PreactEnvelope { source: string; type: string; data: T; } export interface ReactLynxOutboundFrame { method: string; params: { vmType: string; event: string; data: string; }; } export declare function buildReactLynxOutboundFrame(type: string, data?: T): ReactLynxOutboundFrame; export interface ReactLynxSessionResult { state: RendererState; framesSeen: number; operationFrames: number; rootOrderFrames: number; envelopeTypes: Set; } export type ReactLynxEnvelopeAction = "continue" | "stop"; export interface RunReactLynxSessionOptions { connector: Connector; clientId: string; sessionId: number; outbound: ReactLynxOutboundFrame[]; sendInit?: boolean; onEnvelope?: (envelope: PreactEnvelope) => ReactLynxEnvelopeAction; afterSnapshot?: (state: RendererState) => [type: string, data?: unknown] | null; awaitEnvelope?: boolean; snapshotIdleMs?: number; idleMs?: number; maxMs?: number; signal?: AbortSignal; } /** Drive one short-lived Preact DevTools VM-event exchange. */ export declare function runReactLynxSession(options: RunReactLynxSessionOptions): Promise; export declare function reactLynxEmptyTreeDiagnostic(result: ReactLynxSessionResult): string;