import type { ToolSession } from "../../tools/index.js";
import { type JsStatusEvent } from "../js/tool-bridge.js";
export interface PyToolBridgeEntry {
    toolSession: ToolSession;
    signal?: AbortSignal;
    emitStatus?: (event: JsStatusEvent) => void;
}
export interface PyToolBridgeInfo {
    url: string;
    token: string;
}
/** Starts the bridge server lazily and returns its connection info. */
export declare function ensurePyToolBridge(): Promise<PyToolBridgeInfo>;
export declare function registerPyToolBridge(sessionId: string, runId: string, entry: PyToolBridgeEntry): () => void;
/** Stop the bridge and clear registrations. Test-only / shutdown helper. */
export declare function disposePyToolBridge(): Promise<void>;
