import type { ParallelHandoffManifest, ParallelHandoffReference, SubagentResultStatus } from "../../shared/types.ts"; import type { WorktreeCleanupIntent, WorktreeCleanupReport, WorktreeDiff, WorktreeSetup } from "./worktree.ts"; export interface ParallelHandoffResult { agent: string; status: SubagentResultStatus; summary: string; outputPath?: string; structuredOutput?: unknown; structuredOutputPath?: string; sessionPath?: string; } export declare function writeParallelHandoffGroup(input: { manifestPath: string; runId: string; mode: "parallel" | "chain"; source: "foreground" | "async"; cwd: string; stepIndex: number; flatStartIndex: number; setup: WorktreeSetup; diffs: WorktreeDiff[]; cleanup?: WorktreeCleanupReport; results: ParallelHandoffResult[]; now?: number; }): ParallelHandoffReference; export declare function parallelHandoffPath(baseDir: string, runId?: string): string; export declare function writePendingParallelHandoff(input: { manifestPath: string; runId: string; mode: "parallel" | "chain"; source: "foreground" | "async"; cwd: string; stepIndex: number; flatStartIndex: number; setup: WorktreeSetup; }): ParallelHandoffReference; export declare function formatParallelHandoffReference(reference: ParallelHandoffReference): string; export declare function formatParallelHandoffError(error: unknown): string; export declare function discardPreservedWorktrees(manifestPath: string, authorization: Extract["authorization"]): { manifest: ParallelHandoffManifest; text: string; }; //# sourceMappingURL=parallel-handoff.d.ts.map