import { AstNode, Cancellation, DefaultDocumentBuilder, DefaultDocumentValidator, DiagnosticInfo, LangiumDocument, ValidationSeverity, WorkspaceCache } from "langium"; import { Diagnostic } from "vscode-languageserver"; import { KumoriSharedServices } from "./kumori.js"; export declare class KumoriDocumentBuilder extends DefaultDocumentBuilder { private readonly svcs; constructor(svcs: KumoriSharedServices); get docsWithDiagnostics(): WorkspaceCache, void>; private _dwd; /** * Run validation checks on the given document and stores the resulting diagnostics in the document. * If the document already contains diagnostics, the new ones are added to the list. */ validate(document: LangiumDocument, cancelToken: Cancellation.CancellationToken): Promise; } /** * Extended diagnostic interface that tracks source documents for cross-file validation results */ export interface GlobalDiagnostic extends Diagnostic { document?: LangiumDocument; } /** * Custom document validator that enhances diagnostic tracking by capturing source document context */ export declare class KumoriDocumentValidator extends DefaultDocumentValidator { toDiagnostic(severity: ValidationSeverity, message: string, info: DiagnosticInfo): GlobalDiagnostic; }