import type { ErrorCatalogEntry } from "./error-catalog.js"; export interface ErrorRegistryEntry { /** Error discriminator string */ type: string; /** Pipeline stage */ stage: ErrorCatalogEntry["pipeline_stage"]; /** Factory producing a sample error with all fields populated */ make: () => any; /** Factory producing a sample with optional fields included (if different) */ makeWithOptionals?: () => any; } export declare const ERROR_REGISTRY: ErrorRegistryEntry[]; /** * Infer a human-readable type string from a runtime value. * Used to auto-populate the `fields[].type` in the error catalog. */ export declare function inferFieldType(value: unknown): string; /** * Extract fields from a sample error object, excluding the `error` discriminator. * Merges required fields (from `make()`) with optional fields (from `makeWithOptionals()`). */ export declare function deriveFieldsFromSample(entry: ErrorRegistryEntry): { name: string; type: string; }[]; //# sourceMappingURL=error-registry.d.ts.map