import type { RunState } from '../engine/types.js'; import type { ClassicState } from './classic-state.js'; import { type ClassicTask } from './classic-tasks.js'; export interface ClassicNextAction { kind: string; reason: string; taskId?: string | null; cwd?: string; argv?: string[]; } /** A compact projection shared by normal entry and cold recovery, not another state machine. */ export declare function classicRecoveryContext(root: string, directory: string, state: ClassicState, details?: boolean, run?: RunState | null): Promise<{ layout: { schema: string; openSpecRoot: string; changesRoot: string; archiveRoot: string; specsRoot: string; superpowersRoot: string; }; configurationReadiness: import("./classic-build-configuration.js").ClassicConfigurationReadiness; nextAction: ClassicNextAction; continuation: { cwd: string; skill: string; automatic: boolean; kind: string; reason: string; taskId?: string | null; argv?: string[]; }; evidence: { status: string; reason: string; }; nextTask: string | null; taskState: { tasks?: ClassicTask[] | undefined; authority: string; exists: boolean; revision: string; total: number; completed: number; needsIds: boolean; next: ClassicTask | null; }; planMapping: { unmapped?: ClassicTask[] | undefined; status: string; unmappedCount: number; }; coordination: { checkpoint?: import("./classic-progress.js").ClassicCheckpoint | undefined; taskIds?: string[] | undefined; stage?: "done" | "blocked" | "implementing" | "task-review" | "checkoff" | undefined; sessionId?: string | undefined; reviewRounds?: number | undefined; unresolved?: string[] | undefined; path: string | null; stale: boolean; }; delivery: { delivery: null; verification: { status: "needsAuthorization"; invalidated?: undefined; archiveVerified?: undefined; currentBranch?: undefined; commitExists?: undefined; archiveCommitted?: undefined; observedCommit?: undefined; observedPrUrl?: undefined; remoteVerified?: undefined; prVerified?: undefined; remoteStatus?: undefined; prStatus?: undefined; }; } | { delivery: null; verification: { status: "needsAuthorization"; invalidated: boolean; archiveVerified?: undefined; currentBranch?: undefined; commitExists?: undefined; archiveCommitted?: undefined; observedCommit?: undefined; observedPrUrl?: undefined; remoteVerified?: undefined; prVerified?: undefined; remoteStatus?: undefined; prStatus?: undefined; }; } | { delivery: import("./classic-progress.js").ClassicDelivery; verification: { status: "complete" | "needsVerification"; archiveVerified: boolean; invalidated?: undefined; currentBranch?: undefined; commitExists?: undefined; archiveCommitted?: undefined; observedCommit?: undefined; observedPrUrl?: undefined; remoteVerified?: undefined; prVerified?: undefined; remoteStatus?: undefined; prStatus?: undefined; }; } | { delivery: import("./classic-progress.js").ClassicDelivery; verification: { status: "complete" | "needsVerification"; currentBranch: string | null; commitExists: boolean; archiveCommitted: boolean; observedCommit: string | null; observedPrUrl: string | null; remoteVerified: boolean; prVerified: boolean; remoteStatus: "missing" | "unavailable" | "verified" | "notChecked"; prStatus: "missing" | "unavailable" | "verified" | "notChecked"; invalidated?: undefined; archiveVerified?: undefined; }; } | null; requiredFiles: string[]; designReadiness?: { design: string; handoff: "missing" | "ready" | "stale"; issues: import("./classic-issues.js").ClassicIssue[]; } | undefined; issues?: import("./classic-issues.js").ClassicIssue[] | undefined; projectRoot: string; workspace: { projectRoot: string; }; status: import("../engine/types.js").RunStatus | null; stateVersion: null; iteration: number | null; changeDir: string; artifactRefs: { change: string; tasks: string; designDoc: string; plan: string | null; plansRoot: string; handoffContext: string | null; }; }>; //# sourceMappingURL=classic-recovery.d.ts.map