import { AnalyzerService } from "@zzzen/pyright-internal/dist/analyzer/service"; export declare const configFileNames: string[]; import { ErrorMessage } from "./utils/ast"; export declare const pyrightPath: string; export interface LinterOption { projectRoot: string; verbose?: boolean; } export declare enum Severity { Error = "error", Warning = "warning" } export declare type RuleOption = boolean | { options?: unknown[]; severity: Severity; }; export interface Rules { noExplicitAny?: RuleOption; } interface Config extends Rules { include: string[] | string; exclude?: string[] | string; } export declare class Linter { option: LinterOption; service: AnalyzerService; config: Config; private ignoreLinesCache; constructor(option: LinterOption); init(): void; private getIgnoresOfFile; lintFiles(): ErrorMessage[]; setFileOpen(path: string, version: number, content: string): void; setFileClose(path: string): void; forceAnalysis(): boolean; lintFile(file: string): ErrorMessage[] | undefined; readConfig(dir: string): Config | undefined; getMatchingFiles(): string[]; dispose(): void; } export {}; //# sourceMappingURL=linter.d.ts.map