import { type Diagnostic } from "@codemirror/lint"; import { type EditorState } from "@codemirror/state"; /** * Collects syntax-error diagnostics by walking the parse tree for error nodes. * * A blank document reports nothing: grammars differ on whether emptiness parses (JSON requires a * value, YAML does not), but an editor the user has not typed into yet is not in error — that is * what the caller's own "required" validation says, not the gutter. * * @internal */ export declare function getSyntaxErrorDiagnostics(state: EditorState, message: string): Diagnostic[]; /** * Creates a CodeMirror linter extension that reports syntax errors by walking the parse tree for * error nodes. * * Language-agnostic: it reads the tree the language extension builds, so it works for any grammar. * Each lint finishes an unfinished parse on the main thread, within a bounded time budget. * * @param message - localized message shown on each syntax-error diagnostic * @internal */ export declare function createSyntaxErrorLinter(message: string): import("@codemirror/state").Extension; //# sourceMappingURL=syntaxErrorLinter.d.ts.map