import type { DreamInputs } from "./collect.js";
import type { DreamOp } from "./types.js";
export declare const DREAM_PHASES: readonly ["capture", "correct", "organize", "prune"];
export type DreamPhase = typeof DREAM_PHASES[number];
/** Which operations each phase allows. An op is allowed when any enabled phase lists it. */
export declare const PHASE_OPS: Record<DreamPhase, DreamOp[]>;
export declare const CHANGESET_SCHEMA = "{\n  \"changes\": DreamChange[],   // at most MAX_CHANGES; fewer is better than padding\n  \"notes\": string             // one or two sentences: what you noticed, what you left alone and why\n}\nDreamEvidence = { \"kind\": \"transcript\"|\"code\"|\"git\"|\"finding\", \"ref\": string, \"quote\"?: string }\n  // ref: transcript \u2192 \"<session>#t<turn>\" exactly as shown; code \u2192 \"path:line\"; git \u2192 short sha; finding \u2192 fid\nDreamChange =\n  | { \"op\": \"add_finding\", \"text\": string, \"findingType\"?: \"decision\"|\"pitfall\"|\"pattern\"|\"bug\", \"topic\"?: string, \"evidence\": DreamEvidence[] }\n  | { \"op\": \"supersede\", \"findingId\": string, \"newText\": string, \"evidence\": DreamEvidence[] }\n  | { \"op\": \"retract\", \"findingId\": string, \"reason\": string, \"evidence\": DreamEvidence[] }\n  | { \"op\": \"edit\", \"findingId\": string, \"newText\": string, \"evidence\": DreamEvidence[] }\n  | { \"op\": \"merge\", \"findingIds\": string[], \"newText\": string, \"evidence\": DreamEvidence[] }\n  | { \"op\": \"move_topic\", \"findingId\": string, \"topic\": string }\n  | { \"op\": \"promote_truth\", \"findingId\": string, \"text\": string, \"evidence\": DreamEvidence[] }\n  | { \"op\": \"demote_truth\", \"truth\": string, \"reason\": string }\n  | { \"op\": \"write_page\", \"page\": \"reference/pages/<slug>.md\", \"markdown\": string, \"links\": string[] }\n  | { \"op\": \"link\", \"findingId\": string, \"entity\": string }\nfindingId / findingIds are fids from the findings list (8 hex characters). demote_truth.truth is the truth's text as listed.\nwrite_page markdown starts with frontmatter (title, summary), then the body; cite findings as fid:xxxxxxxx and other pages as [[slug]]; links lists those slugs.";
export interface DreamPromptOptions {
    phases: DreamPhase[];
    maxChanges: number;
    now: Date;
    mode?: "apply" | "propose";
}
export declare function buildDreamPrompt(inputs: DreamInputs, options: DreamPromptOptions): string;
