import { DiagnosticRecord, ErrorRecord, InfoRecord, WarningRecord } from '../../packages/utils/dist';
import { Diagnostic } from 'vscode-languageserver-protocol/browser';
/** CodeMirror/LSP diagnostic with optional editor mark class metadata. */
export type EditorLspDiagnostic = Diagnostic & {
    markClass?: string;
};
/**
 * Filters diagnostics based on annotation toggles and maps them to LSP diagnostics.
 */
export declare function toAdditionalDiagnosticsForLsp({ diagnostics, showInfoAnnotations, }: {
    diagnostics: DiagnosticRecord[];
    showInfoAnnotations: boolean;
}): EditorLspDiagnostic[];
/**
 * Merges initial and runtime diagnostics, grouped by type for tab display and counters.
 */
export declare function mergeDiagnosticsByType({ initialDiagnostics, diagnostics, }: {
    initialDiagnostics: DiagnosticRecord[];
    diagnostics: DiagnosticRecord[];
}): {
    warnings: WarningRecord[];
    errors: ErrorRecord[];
    infos: InfoRecord[];
    accessibility: import('../../packages/utils/dist').AccessibilityRecord[];
    accessibilityLevel1Count: number;
    accessibilityLevel2Count: number;
};
//# sourceMappingURL=diagnostics.d.ts.map