import type { Diagnostic } from "@codemirror/lint";
import type * as tsvfs from "@typescript/vfs";
import ts from "typescript";
/**
 * TypeScript has a set of diagnostic categories,
 * which maps roughly onto CodeMirror's categories.
 * Here, we do the mapping.
 */
export declare function tsCategoryToSeverity(diagnostic: Pick<ts.DiagnosticWithLocation, "category" | "code">): Diagnostic["severity"];
export declare function getDiagnostics({ env, fileName, }: {
    env: tsvfs.VirtualTypeScriptEnvironment;
    fileName: string;
}): Diagnostic[];
