/** Base class for prompt errors, each with a stable `code`. */ export declare class PromptError extends Error { /** Stable code, such as `PROMPT_RENDER_ERROR`. */ readonly code: string; constructor(message: string, /** Stable code, such as `PROMPT_RENDER_ERROR`. */ code: string); } /** Raised when a definition is invalid: an unknown or recursive partial, or a malformed placeholder. */ export declare class PromptDefinitionError extends PromptError { constructor(message: string); } /** Raised when rendering is missing variables and `missing` is `error`, the default. */ export declare class PromptRenderError extends PromptError { /** The prompt. */ readonly prompt: string; /** Every variable that had no value. */ readonly missing: readonly string[]; constructor( /** The prompt. */ prompt: string, /** Every variable that had no value. */ missing: readonly string[]); } /** Raised when a prompt, a version, or a label does not exist. */ export declare class PromptNotFoundError extends PromptError { /** The prompt. */ readonly prompt: string; /** The version or label looked up. */ readonly ref: string; constructor( /** The prompt. */ prompt: string, /** The version or label looked up. */ ref: string); } /** Raised when a label moved while it was being changed, so the change was not applied. */ export declare class PromptConflictError extends PromptError { /** The prompt. */ readonly prompt: string; /** The label that moved. */ readonly label: string; constructor( /** The prompt. */ prompt: string, /** The label that moved. */ label: string); } /** The verdict of one promotion gate. */ export interface GateResult { /** Names the gate in reports. */ gate: string; /** Whether it allows the promotion. */ ok: boolean; /** Why it refused, or what it checked. */ reason?: string; } /** Raised when a gate refuses a promotion. Nothing moved. */ export declare class PromptPromotionError extends PromptError { /** The prompt. */ readonly prompt: string; /** The label it was to be promoted to. */ readonly to: string; /** Every gate's verdict, the refusals included. */ readonly results: readonly GateResult[]; constructor( /** The prompt. */ prompt: string, /** The label it was to be promoted to. */ to: string, /** Every gate's verdict, the refusals included. */ results: readonly GateResult[]); }