import { type PipelineDefinition, type PipelineRun, type PipelineStage, type StageDiskStatus, type StageScan } from "./types.ts"; export declare const RUN_MANIFEST_NAME = "run.json"; export declare function scanStageOutput(outputDir: string): { status: StageDiskStatus; outputFiles: string[]; }; export declare function stageOutputDir(runRoot: string, stage: PipelineStage): string; export declare function scanPipelineRun(definition: PipelineDefinition, run: PipelineRun): readonly StageScan[]; export declare function runManifestPath(runRoot: string): string; export declare function parsePipelineRun(value: unknown): PipelineRun | undefined; export declare function readPipelineRun(runRoot: string): PipelineRun | undefined; export declare function writePipelineRun(run: PipelineRun): void; export declare function createPipelineRunRoot(cwd: string, runId: string): string; /** Serialize project-wide pipeline admission and transitions across sessions and OS processes. */ export declare function withPipelineLifecycleLock(cwd: string, mutate: () => T): T; /** A restored run may operate only on its exact project-owned run directory. */ export declare function isProjectPipelineRun(cwd: string, run: PipelineRun): boolean; /** Resolve the exact validated durable manifest for a project-owned session snapshot. */ export declare function resolveProjectPipelineRun(cwd: string, run: PipelineRun): PipelineRun | undefined; /** Resolve the durable project-wide current run, using a session snapshot only as an identity hint. */ export declare function resolveCurrentProjectPipelineRun(cwd: string, snapshot?: PipelineRun): PipelineRun | undefined; export declare function instantiatePipelineRun(args: { definition: PipelineDefinition; runId: string; runRoot: string; goalId?: string; now: string; }): PipelineRun; export declare function persistPipelineRun(run: PipelineRun, now: string): PipelineRun; export declare function findActivePipelineRun(cwd: string): PipelineRun | undefined; export declare function loadPipelineRunById(cwd: string, runId: string): PipelineRun | undefined; export declare function decodePipelineRunPayload(data: unknown): PipelineRun | undefined; export declare function pipelineRunParentDir(runRoot: string): string; //# sourceMappingURL=run-state.d.ts.map