import { z } from "zod"; export declare const ExecutionPhaseSchema: z.ZodEnum<["policy-check", "worktree-create", "running", "verifying", "rollback", "completed", "failed", "reverted"]>; export type ExecutionPhase = z.infer; export declare const CheckpointSchema: z.ZodObject<{ actionId: z.ZodString; phase: z.ZodEnum<["policy-check", "worktree-create", "running", "verifying", "rollback", "completed", "failed", "reverted"]>; stepIndex: z.ZodNullable; pid: z.ZodNumber; hostname: z.ZodString; branch: z.ZodNullable; updatedAt: z.ZodString; recoveredFromPhase: z.ZodOptional>>; recoveredFromPid: z.ZodOptional>; recoveredFromHostname: z.ZodOptional>; recoveredAt: z.ZodOptional>; }, "strict", z.ZodTypeAny, { updatedAt: string; pid: number; hostname: string; actionId: string; phase: "running" | "verifying" | "completed" | "failed" | "reverted" | "rollback" | "policy-check" | "worktree-create"; branch: string | null; stepIndex: number | null; recoveredFromPhase?: "running" | "verifying" | "completed" | "failed" | "reverted" | "rollback" | "policy-check" | "worktree-create" | null | undefined; recoveredFromPid?: number | null | undefined; recoveredFromHostname?: string | null | undefined; recoveredAt?: string | null | undefined; }, { updatedAt: string; pid: number; hostname: string; actionId: string; phase: "running" | "verifying" | "completed" | "failed" | "reverted" | "rollback" | "policy-check" | "worktree-create"; branch: string | null; stepIndex: number | null; recoveredFromPhase?: "running" | "verifying" | "completed" | "failed" | "reverted" | "rollback" | "policy-check" | "worktree-create" | null | undefined; recoveredFromPid?: number | null | undefined; recoveredFromHostname?: string | null | undefined; recoveredAt?: string | null | undefined; }>; export type Checkpoint = z.infer; export declare function isTerminalPhase(phase: ExecutionPhase): boolean; export declare class CheckpointStore { private readonly store; constructor(workspaceRoot: string, actionId: string); write(value: Omit): Promise; read(): Promise; clear(): Promise; } export interface RecoveryOutcome { readonly orphanedRuns: readonly { actionId: string; phase: ExecutionPhase; }[]; readonly errors: readonly string[]; } export declare function recoverInflightRuns(workspaceRoot: string): Promise; //# sourceMappingURL=checkpoint.d.ts.map