import { Diagnostic } from "vscode-languageserver"; import type { TextDocument } from "vscode-languageserver-textdocument"; import { DIAGNOSTIC_SOURCE, ACTION_KEYED_MESSAGE, V2_DEPRECATION_MESSAGE, schemaMessage } from "./messages.js"; export { DIAGNOSTIC_SOURCE, ACTION_KEYED_MESSAGE, V2_DEPRECATION_MESSAGE, schemaMessage, }; /** * Should this schema error be dropped because an action-keyed step already * explains it? Two cases: (1) the error sits at/under the offending step, or * (2) it's a vague container `anyOf`/`oneOf` failure on an *ancestor* of that * step — the propagation of the same problem up to the test/spec level, which * says only "must match a schema in anyOf" and is useless next to the precise * action-keyed diagnostic. */ export declare function isSuppressedByActionKeyed(instancePath: string, keyword: string | undefined, suppressedPointers: string[]): boolean; /** * Compute all diagnostics for a document. Pure over (uri, text): no filesystem, * no network. Handles JSON and YAML specs/configs. Returns `[]` for anything the * detection gate doesn't recognize and for empty/unparseable buffers (beyond * the syntax errors themselves). */ export declare function computeDiagnostics(doc: TextDocument): Diagnostic[]; //# sourceMappingURL=diagnostics.d.ts.map