import type { BootstrapWriteBoundary } from "../io/bootstrap-write-boundary.js"; import type { WorkflowStateWriteOptions } from "./workflow-state-conflict.js"; export type PlanOptions = WorkflowStateWriteOptions & { readonly bootstrapWriteBoundary?: BootstrapWriteBoundary; readonly projectDir?: string; readonly stdin?: string; }; export declare class PlanDraftError extends Error { constructor(message: string); } export declare const PLAN_PATH = ".persona/workflow/plan.md"; export declare const IMPLEMENTATION_REPORT_PATH = ".persona/workflow/implementation-report.md"; export declare const REVIEW_REPORT_PATH = ".persona/workflow/review-report.md"; export declare function missingWorkflowTemplates(projectDir: string, bootstrapWriteBoundary?: BootstrapWriteBoundary): readonly string[]; /** * Rewrites report templates that are missing without touching the plan or any * template still on disk. These are only ever written as a side effect of * drafting a plan, so deleting one previously left the project in a state where * `workflow finish` demanded a file that no command would recreate. */ export declare function restoreMissingWorkflowTemplates(options?: PlanOptions): readonly string[]; export declare function initializeWorkflowPlan(options?: PlanOptions, force?: boolean): string;