import { OffsetRange, ActionKeyedStep } from "./json/positions.js"; /** A syntax error reduced to an offset span + message, format-agnostic. */ export interface SyntaxErrorSpan { range: OffsetRange; message: string; } /** * A format-agnostic view of a parsed spec/config buffer. JSON and YAML each * provide one; the diagnostics (and, later, inline) pipeline works against this * interface so the schema/action logic is written once. */ export interface SpecModel { /** The plain JS value (undefined for empty/unparseable buffers). */ value: any; /** Syntax-error spans + messages (empty when the buffer parses cleanly). */ syntaxErrors: SyntaxErrorSpan[]; /** Source span for an AJV instancePath, or null if unlocatable. */ rangeForPath(instancePath: string): OffsetRange | null; /** Steps written in the legacy `action`-keyed form. */ actionKeyedSteps(): ActionKeyedStep[]; } /** * Build the right model for a buffer by extension, or null for an unsupported * one. Callers gate on the classifier separately (spec vs config). */ export declare function buildModel(uri: string, text: string): SpecModel | null; //# sourceMappingURL=model.d.ts.map