/** * Catalog metadata for a single rule. */ export type TypefestRuleCatalogEntry = Readonly<{ ruleId: TypefestRuleCatalogId; ruleName: TypefestRuleNamePattern; ruleNumber: number; }>; /** * Stable machine-friendly rule id format (for example: `R001`). */ export type TypefestRuleCatalogId = `R${string}`; /** Pattern for unqualified rule names supported by eslint-plugin-typefest. */ type TypefestRuleNamePattern = `prefer-${string}`; /** * Canonical catalog metadata entries in stable display/order form. */ export declare const typefestRuleCatalogEntries: readonly TypefestRuleCatalogEntry[]; /** * Fast lookup map for rule catalog metadata by rule name. */ export declare const typefestRuleCatalogByRuleName: Readonly>>; /** * Resolve stable catalog metadata for a rule name. * * @throws When the rule is missing from the catalog. */ /** * Resolve stable catalog metadata for a rule name when available. */ export declare const getRuleCatalogEntryForRuleNameOrNull: (ruleName: string) => null | TypefestRuleCatalogEntry; /** * Resolve stable catalog metadata for a rule name. * * @throws When the rule is missing from the catalog. */ export declare const getRuleCatalogEntryForRuleName: (ruleName: string) => TypefestRuleCatalogEntry; /** * Resolve stable catalog metadata by rule id. */ export declare const typefestRuleCatalogByRuleId: ReadonlyMap; /** * Resolve stable catalog metadata for a catalog id. */ export declare const getRuleCatalogEntryForRuleId: (ruleId: TypefestRuleCatalogId) => TypefestRuleCatalogEntry | undefined; /** * Validate that catalog IDs are unique and sequential. */ export declare const validateRuleCatalogIntegrity: () => boolean; export {}; //# sourceMappingURL=rule-catalog.d.ts.map