import type { SpecDiagnostic } from "../tools/compiler/spec-diagnostics.ts"; import { type ConversionUnit } from "./types.ts"; export declare class ModelOutputError extends Error { constructor(message: string); } export interface ConditionalRequestAllowance { integrationAuditUpTo: number; integrationRepairUpTo: number; compilerRepairUpTo: number; } /** Planning knobs the receipt needs; a subset of `direct.planning` config. */ export interface PlanningDisclosureOptions { enabled: boolean; adaptive: boolean; projectBlueprint: boolean; fileTodo: boolean; markerTodo: boolean; maxCodingPassesPerUnit: number; } export interface PlannedRequestCounts { /** One semantic turn decision per inline marker. */ classification: number; /** Batched planning-triage requests; 0 unless adaptive planning is on. */ planClassification: number; /** 0 or 1: the shared contract is skipped when there is nothing to agree. */ blueprint: number; /** Per-target todo requests; an upper bound when adaptive planning is on. */ todo: number; /** One per unit; refinement is conditional and reported separately. */ coding: number; /** Additional coding requests only issued on a real todo coverage gap. */ refinementUpTo: number; } /** Exact planned request counts, for disclosure before the confirmation prompt. */ export declare function plannedRequestCounts(units: readonly ConversionUnit[], planning: PlanningDisclosureOptions): PlannedRequestCounts; /** Conservative opt-in request ceilings for pre-generation disclosure. */ export declare function conditionalRequestAllowance(units: readonly ConversionUnit[], configuredLanguages: string | readonly string[]): ConditionalRequestAllowance; export declare function renderReceipt(units: readonly ConversionUnit[], provider: string, model: string, configuredLanguages: string | readonly string[], options?: { reconcileIntegrations?: boolean; planning?: PlanningDisclosureOptions; compiler?: { enabled: boolean; onUnderspecified: "error" | "warn"; }; contextToolCallsUpTo?: number; }): string; /** Human-readable natural-language compile errors. */ export declare function renderCompileErrors(diagnostics: readonly SpecDiagnostic[]): string; export declare function stripCodeFence(output: string): string; //# sourceMappingURL=presentation.d.ts.map