interface AstNode { readonly type: string; [key: string]: any; } /** * Options accepted by the require-default-prefix-naming rule. */ export interface UtilRequireDefaultPrefixNamingRuleOptions { /** * JSDoc tag that exempts a matching const from the rule. * Defaults to `@dbxAllowDefaultPrefix`. */ readonly exemptJsdocTag?: string; } /** * ESLint rule definition for require-default-prefix-naming. */ export interface UtilRequireDefaultPrefixNamingRuleDefinition { readonly meta: { readonly type: 'suggestion'; readonly fixable: undefined; readonly docs: { readonly description: string; readonly recommended: boolean; }; readonly messages: { readonly defaultShouldBePrefix: string; }; readonly schema: readonly object[]; }; create(context: { options: UtilRequireDefaultPrefixNamingRuleOptions[]; report: (descriptor: { node: AstNode; messageId: string; data?: Record; }) => void; sourceCode: AstNode; }): Record void>; } /** * ESLint rule that enforces the dbx-components naming convention: when a SCREAMING_CASE binding * contains the segment `DEFAULT` (e.g. `FOO_DEFAULT_BAR` or `FOO_BAR_DEFAULT`), the `DEFAULT_` * segment must appear as the leading prefix instead (`DEFAULT_FOO_BAR`). * * Rationale: keeping `DEFAULT_` as a leading prefix makes default-providing constants trivially * groupable in IDE symbol lists and import bars, and matches the rest of the codebase's * `DEFAULT_X_Y_Z` pattern. * * Applies to every `VariableDeclarator` whose binding is UPPER_SNAKE_CASE. PascalCase, camelCase, * underscore-prefixed (internal), and mixed names are ignored. * * Not auto-fixable: renaming a binding has cross-file impact that an autofix can't safely * propagate. Use the exempt JSDoc tag (default `@dbxAllowDefaultPrefix`) to silence the rule on a * specific declaration when the heuristics get it wrong. * * @see `dbx__note__typescript-programming` → Constant Naming. */ export declare const UTIL_REQUIRE_DEFAULT_PREFIX_NAMING_RULE: UtilRequireDefaultPrefixNamingRuleDefinition; export {};