import { type SupervisedRunnerResult } from "./child-runner-supervisor.js"; import { ServerProcessRegistry, type ProcessIdentity } from "./processes.js"; import { type ResourceRunnerLaunchEnvelope, type ResourceRunnerMessage, type ResourceRunnerResponse } from "./resource-runner-protocol.js"; import type { RunnerOutcome } from "./state.js"; export declare class ResourceRunnerSupervisor { readonly envelope: ResourceRunnerLaunchEnvelope; private readonly options; private readonly supervisor; constructor(envelope: ResourceRunnerLaunchEnvelope, options: { registry: ServerProcessRegistry; onMessage: (message: ResourceRunnerMessage) => Promise; env?: Record; startupTimeoutMs?: number; runnerEntryPath?: string; onSpawn?: (identity: ProcessIdentity) => void; onDiagnostic?: (message: string) => void; }); start(): Promise; wait(): Promise; stop(outcome?: RunnerOutcome): Promise; }