import { type TmuxApi } from "./tmux.js"; export interface LaneSpec { id: string; name?: string; /** Optional tmux pane id, used only to flag a crashed worker as "dead". */ paneId?: string; } export type LaneStatus = "done" | "working" | "dead"; export interface LaneResult { id: string; name?: string; status: LaneStatus; /** Delivered result file contents for done lanes; empty otherwise. */ output: string; } export interface CollectResult { dir: string; lanes: LaneResult[]; total: number; /** Terminal lanes (delivered or dead). */ doneCount: number; allDone: boolean; } export declare function resultPath(dir: string, laneId: string): string; export declare function readManifest(dir: string): LaneSpec[]; export declare function collectDeliveries(dir: string, lanes: LaneSpec[], opts?: { tmux?: TmuxApi; }): CollectResult; export declare function formatCollect(result: CollectResult): string;