import type { ErrorCategory, RegisteredError } from "./types.js"; export type ErrorRegistryMap = Readonly>; type UnionToIntersection = (Union extends unknown ? (value: Union) => void : never) extends (value: infer Intersection) => void ? Intersection : never; type ComposedSlugMap = UnionToIntersection; /** * Compose slug-keyed fragments without object-spread's silent last-write-wins behavior. */ export declare function composeSluggedMaps(collectionName: string, ...fragments: Fragments): Readonly>; export declare function composeErrorRegistry(...fragments: Fragments): Readonly>; export declare function getRegistryEntry>(registry: Registry, slug: Slug): Registry[Slug]; export declare function getRegistryEntry(registry: ErrorRegistryMap, slug: string): RegisteredError | undefined; export declare function getRegistryEntriesByCategory(registry: ErrorRegistryMap, category: ErrorCategory): RegisteredError[]; export declare function getRegistrySlugs(registry: Registry): Array; export {}; //# sourceMappingURL=error-registry-helpers.d.ts.map