import { type SprintContract } from "../contracts/sprint-contract.js"; /** * Save a sprint contract to disk. * Overwrites any existing contract with the same contractId. * * Validates the contract against the schema and the precision quality gate. * Throws on either failure — partial or vague contracts are not silently saved. */ export declare function saveContract(projectRoot: string, contract: SprintContract): Promise; /** * Load a sprint contract by id. * Throws if not found or invalid. */ export declare function loadContract(projectRoot: string, id: string): Promise; /** * List all saved contracts, sorted by filename. * * Files that fail validation are skipped silently — to surface validation * errors, use `loadContract` directly. (Skipping is intentional here so that * a single bad file doesn't break listing for the rest.) */ export declare function listContracts(projectRoot: string): Promise; /** * Update an existing contract (save with the same contractId). */ export declare function updateContract(projectRoot: string, contract: SprintContract): Promise; /** * Delete all contract files in `.bober/contracts/` whose parsed `specId` * matches the given specId. Other specs' contracts are left untouched. * * Silently ignores missing directories, unreadable files, and non-JSON * files so that a partial state never aborts a re-plan. */ export declare function clearContractsForSpec(projectRoot: string, specId: string): Promise; //# sourceMappingURL=sprint-state.d.ts.map