import { Hson } from "../../hson-authoring.js"; import { type TransformErrorDetails } from "../../core/errors.js"; import type { HsonCanonical } from "../../api/transform/transform.types.js"; import type { GeneratedSegment, InterpolationSite } from "./interpolation-source.js"; export type InterpolationCapture = Readonly<{ evaluationId: string; site: InterpolationSite; source: string; segments: readonly GeneratedSegment[]; canonical?: HsonCanonical; timings: Readonly<{ admissionMs: number; traceMs: number; }>; failure?: Readonly<{ message: string; details?: TransformErrorDetails; substitution?: number; }>; }>; export declare function reset_interpolation_captures(): void; export declare function read_interpolation_captures(): readonly InterpolationCapture[]; /** Calls the verified real tag once with the original arguments. Only afterwards * reuses its pure primitive encoder to record source; no expression, getter, * coercion, clone or second Hson parse is performed by capture. Unsupported * values are neither retained nor inspected. The original exception is rethrown. */ export declare function capture_interpolation(site: InterpolationSite, tag: typeof Hson, strings: TemplateStringsArray, values: readonly (string | number | boolean | null)[]): Readonly<{ canonical: HsonCanonical; capture?: InterpolationCapture; }>; //# sourceMappingURL=interpolation-capture.d.ts.map