import { type ResultEnvelope } from 'peaks-loop-shared/result'; import { normalizePlanBody, type PlanType } from './plan-reader.js'; export interface RefreshPlanArgs { readonly type: PlanType; readonly project: string; readonly sessionId: string; /** When true, write the plan to disk. When false, return the would-be body + hash only. */ readonly apply: boolean; } export interface RefreshPlanData { readonly type: PlanType; readonly writtenFiles: string[]; /** When `apply=false`, the would-be write targets. */ readonly wouldWrite: string[]; readonly hash: string; readonly refreshedAt: string; readonly dryRun: boolean; /** The deterministic body (post-normalization). Always surfaced so tests * can assert byte-equality across runs. */ readonly bodyPreview: string; } /** Build the security-test-plan body deterministically. */ export declare function buildSecurityPlanBody(projectRoot: string): string; /** Build the perf-baseline body deterministically. */ export declare function buildPerfPlanBody(projectRoot: string): string; export declare function refreshPlan(args: RefreshPlanArgs): ResultEnvelope; export { normalizePlanBody }; export declare function renderPlanBody(args: { type: PlanType; project: string; }): string; export declare function hashBody(body: string): string;