export interface OxlintDiagnostic { code: string; filename: string; message: string; /** Location of the first label; `offset` and `length` count UTF-8 bytes. */ span: { length: number; line: number; offset: number; } | undefined; } /** * Runs the repository's own Oxlint, so its version and configuration discovery apply. Oxlint * resolves from `oxlintFrom`, which defaults to `cwd`. */ export declare function runOxlint(params: { args: readonly string[]; cwd: string; oxlintFrom?: string; }): { diagnostics: OxlintDiagnostic[]; }; /** Runs `oxlint --print-config` in the repository and returns its resolved `ignorePatterns`. */ export declare function readIgnorePatterns(params: { cwd: string; }): { ignorePatterns: string[]; }; /** * Runs `oxlint --print-config` in the repository: the configuration after categories expand into * rules and override globs are normalized. `env` replaces the environment the configuration sees. */ export declare function printOxlintConfig(params: { cwd: string; env?: NodeJS.ProcessEnv; }): Record; export declare function toIgnorePatterns(params: { config: Record; }): string[];