/** Deterministic creation and loading of reviewed ChangeContractV1 artifacts. */ import type { ProjectProfileV1 } from "../tools/analysis/analyzer-types.ts"; import { type ChangeContractV1 } from "../core/contracts.ts"; import type { SourceFile } from "../core/types.ts"; export declare class PlanningError extends Error { readonly code: string; constructor(code: string, message: string); } export interface DraftContractResult { contract: ChangeContractV1; contractPath: string; needsReview: true; } export declare function contractPathForSource(root: string, source: SourceFile): string; /** * Turns an informal `.human` request into a change-contract draft that is * deliberately left unreviewed. The material review question blocks generation * until a person confirms the scope, acceptance criteria, and risks. */ export declare function createDraftContract(root: string, source: SourceFile, profile: ProjectProfileV1): Promise; export declare function writeDraftContract(result: DraftContractResult): Promise; export interface LoadedContract { contract: ChangeContractV1; contractPath: string; hash: string; } /** Load a reviewed contract and bind it to the current source and analysis. */ export declare function loadReviewedContract(root: string, contractPathInput: string, profile: ProjectProfileV1): Promise; export declare function contractRelativeToRoot(root: string, path: string): string; //# sourceMappingURL=planner.d.ts.map