import { noteDispatched } from '../../services/dispatch/batch-counter.js'; import { type ArtifactMeta } from '../../services/context/artifact-meta.js'; import { type SubAgentToolCall } from '../../services/dispatch/sub-agent-dispatcher.js'; import { type DispatchOptions } from './sub-agent-shared.js'; export interface WriteDispatchRecordInput { options: DispatchOptions; projectRoot: string; sid: string; rid: string; role: string; effectivePrompt: string; toolCall: SubAgentToolCall; batchId: string; isolationMode: 'worktree' | 'container' | null; leaseId: string | null; /** The dispatch's warning list — this function appends to it, as the inline block did. */ warnings: string[]; } export interface DispatchRecordWrite { artifactMeta: ArtifactMeta | null; dispatchRecordPath: string; counter: ReturnType; } export declare function writeDispatchRecord(input: WriteDispatchRecordInput): DispatchRecordWrite;