interface AstNode { readonly type: string; [key: string]: any; } /** * Options accepted by the prefer-config-object rule (and the hard variant). */ export interface UtilPreferConfigObjectRuleOptions { /** * Maximum number of positional parameters before the rule fires. Defaults to 2 for the warn * variant (`prefer-config-object`) and 4 for the hard variant (`prefer-config-object-hard`). */ readonly maxParams?: number; /** * JSDoc tag that exempts a function from this rule. Defaults to `@dbxAllowMultiParams`. */ readonly allowJsdocTag?: string; } /** * ESLint rule definition for prefer-config-object. */ export interface UtilPreferConfigObjectRuleDefinition { readonly meta: { readonly type: 'suggestion'; readonly docs: { readonly description: string; readonly recommended: boolean; }; readonly messages: { readonly tooManyParams: string; }; readonly schema: readonly object[]; }; create(context: { options: UtilPreferConfigObjectRuleOptions[]; report: (descriptor: { node: AstNode; messageId: string; data?: Record; }) => void; sourceCode: AstNode; }): Record void>; } /** * ESLint rule recommending a single config object when a function takes more than two positional * parameters (default `maxParams: 2`, i.e. fires at 3+ args). Intended to be configured at the * `warn` severity. Pair with `prefer-config-object-hard` for a stricter cap. * * @see `dbx__note__typescript-programming` → Prefer Single Config Object */ export declare const UTIL_PREFER_CONFIG_OBJECT_RULE: UtilPreferConfigObjectRuleDefinition; /** * Hard-stop variant of `prefer-config-object`. Fires when a function takes more than four positional * parameters (default `maxParams: 4`, i.e. fires at 5+ args). Intended to be configured at the * `error` severity so genuinely unwieldy signatures break the build even when the softer warn-level * rule is disabled or downgraded. * * @see `dbx__note__typescript-programming` → Prefer Single Config Object */ export declare const UTIL_PREFER_CONFIG_OBJECT_HARD_RULE: UtilPreferConfigObjectRuleDefinition; export {};