import type { Diagnostic } from '@codemirror/lint'; import type { VirtualTypeScriptEnvironment } from '@typescript/vfs'; import type { TypeScriptConfig } from './types'; /** * Binds the TypeScript `lint()` method with TypeScript's * semantic and syntactic diagnostics. You can use * the `getLints` method for a lower-level interface * to the same data. */ export declare function tsLinter(config: TypeScriptConfig): import("@codemirror/state").Extension; /** * Lower-level interface to get semantic and syntactic * diagnostics from the TypeScript environment. * * This is used by tsLinter and tsLinterWorker, * but you can use it directly to power other UI. */ export declare function getLints({ env, path, }: { env: VirtualTypeScriptEnvironment; path: string; }): Diagnostic[];