import { type BridgeTarget, type CommandOp, type ReadyFrame, type ResultFrame } from './contracts.js'; export interface ControllerOptions { controlPort: number; instanceId: string; token?: string; host?: string; path?: string; connectTimeoutMs?: number; unlockFlag?: string; } export interface CommandInput { op: CommandOp; target: BridgeTarget; args?: Record; timeoutMs?: number; } export declare class BridgeController { private readonly opts; private socket; private ready; private connectPromise; private readonly pending; constructor(options: ControllerOptions); get capabilities(): ReadyFrame['capabilities'] | undefined; connect(): Promise; command(input: CommandInput): Promise; close(): void; private resolveResult; private failAllPending; }