import { type CeilingRule } from "./ceilingRules"; /** Set to `ignore` to make createLintCeilingOverrides return nothing, so the defaults show. */ export declare const LINT_CEILINGS_ENV = "CB_LINT_CEILINGS"; /** * The name before the rename. The CLI still sets it so an older plugin copy in the config honors it, * and this plugin still honors it so an older CLI works with this copy. */ export declare const LEGACY_LINT_CEILINGS_ENV = "CBH_LINT_CEILINGS"; /** The parts of an Oxlint configuration that decide whether and how a rule applies to a file. */ export interface CeilingConfig { categories?: Readonly>> | undefined; overrides?: ReadonlyArray<{ excludeFiles?: readonly string[] | undefined; files: readonly string[]; rules?: Readonly> | undefined; }> | undefined; plugins?: readonly string[] | null | undefined; rules?: Readonly> | undefined; } export interface CeilingOverride { files: string[]; rules: Record]>; } type Severity = "error" | "warn"; /** * Returns one override per file in `ceilings`, to append after every other override: Oxlint applies * the last matching override, so an earlier ceiling loses to a later glob such as a test preset. * Each pattern starts with `./`, because Oxlint matches a slashless pattern in every directory. * Each keeps the severity and options the file would otherwise get, because an override replaces * a rule's options rather than merging them, and skips rules that are off for the file. */ export declare function createLintCeilingOverrides(params: { ceilings: unknown; config: CeilingConfig; env?: Readonly>; }): { overrides: CeilingOverride[]; }; export {};