import type { MissionState, WorkerState } from '../mission/types.js'; import type { BackgroundRegistry } from '../background/registry.js'; import type { ChildSessionPort } from '../host/port.js'; declare function normFile(value: string): string; export declare function diffDelta(before: Record | undefined, after: Record): string[]; export { normFile }; export interface ChildWorkspaceBinding { workspaceID: string; directory: string; } export declare class ChildExecutionCoordinator { private readonly host; private readonly registry?; constructor(host: ChildSessionPort, registry?: BackgroundRegistry | undefined); resolveCallbackWorker(sessionID: string): WorkerState | undefined; create(parentSessionID: string, title: string, role: string, model?: string, variant?: string, workspace?: ChildWorkspaceBinding): Promise<{ id?: string; workspaceID?: string; directory?: string; }>; createForTask(parentSessionID: string, title: string, role: string, model?: string, variant?: string, forkFromSession?: string, workspace?: ChildWorkspaceBinding): Promise; sendProviderPrompt(sessionID: string, text: string, role?: string, model?: string, variant?: string, tools?: Record): Promise; recordModelProjection(worker: WorkerState, model?: string, variant?: string): void; abortNativeSession(m: MissionState, sessionID: string, reason: string, workerID?: string, taskID?: string): Promise; captureNativeDiff(worker: WorkerState, phase: 'baseline' | 'final'): Promise | undefined>; noteEffectiveModel(m: MissionState, workerID: string, observed?: { model?: string; variant?: string; source?: string; }): { ok: boolean; expected?: string; observed?: string; reason: string; }; }