import type { Linter } from 'eslint'; export * from './types'; /** * Rename rule keys by a prefix map (longest-prefix-first). * * Backward compatible: pass a `prefix` string (with optional `from`, default * `@typescript-eslint`) to rename a single prefix; or pass a full map. */ export declare function renameRules(rules: Record, mapOrPrefix: Record | string, from?: string): Record; /** * Check if a value is a plain object */ export declare function isObject(value: unknown): value is Record; /** * Merge two objects deeply */ export declare function deepMerge>(target: T, source: Partial): T; /** * Ensure a value is an array */ export declare function ensureArray(value: T | T[]): T[]; /** * Filter out undefined values from an array */ export declare function filterNil(array: (T | undefined | null)[]): T[]; /** * Check if currently running inside a git hook or lint-staged context. * In these contexts we want strict rules (not the editor-downgraded ones). */ export declare function isInGitHooksOrLintStaged(): boolean; /** * Check if currently running in an editor environment. * * Returns `false` in CI and git-hook / lint-staged contexts so that rules * downgraded for editors (e.g. `prefer-const`) stay strict where it matters. */ export declare function isInEditorEnv(): boolean; /** * Interop default export */ export declare function interopDefault(promise: Promise): Promise; /** * Resolve sub-options from parent options */ export declare function resolveSubOptions(options: Record, key: K): Record; /** * Get overrides from options */ export declare function getOverrides(options: Record, key: string): Linter.RulesRecord; /** * Process ignores option */ export declare function processIgnores(userIgnores: string[] | ((defaults: string[]) => string[]) | undefined): string[]; //# sourceMappingURL=index.d.ts.map