import { type ChannelAdapterLaunch, type ChannelAdapterMessage, type ChannelAdapterResponse } from "../channels/protocol.js"; import { type SupervisedRunnerResult } from "./child-runner-supervisor.js"; import { ServerProcessRegistry, type ProcessIdentity } from "./processes.js"; import type { RunnerOutcome } from "./state.js"; export declare class ChannelAdapterSupervisor { readonly launch: ChannelAdapterLaunch; private readonly options; private readonly supervisor; constructor(launch: ChannelAdapterLaunch, options: { registry: ServerProcessRegistry; onMessage: (message: ChannelAdapterMessage) => Promise; env?: Record; startupTimeoutMs?: number; adapterEntryPath?: string; onSpawn?: (identity: ProcessIdentity) => void; onDiagnostic?: (message: string) => void; }); start(): Promise; wait(): Promise; stop(outcome?: RunnerOutcome): Promise; }