import { type PlanSpec } from "../contracts/spec.js"; /** * Save a plan spec to disk. * Overwrites any existing spec with the same id. */ export declare function saveSpec(projectRoot: string, spec: PlanSpec): Promise; /** * Load a plan spec by id. * Throws if not found or invalid. */ export declare function loadSpec(projectRoot: string, id: string): Promise; /** * Load the most recently created spec (by `createdAt` field). * Returns null if no specs exist. */ export declare function loadLatestSpec(projectRoot: string): Promise; /** * List all saved specs, sorted by filename. */ export declare function listSpecs(projectRoot: string): Promise; //# sourceMappingURL=plan-state.d.ts.map