/** * Unified Error Catalog -- single source of truth for all CLEO error definitions. * * Merges previously scattered error registries into one canonical catalog * keyed by ExitCode. * * Consumers should import from here instead of the legacy registries. * * @task T5240 */ import type { LAFSErrorCategory } from '@cleocode/lafs'; /** * A single entry in the unified error catalog. */ export interface ErrorDefinition { /** Numeric exit code from ExitCode enum. */ code: number; /** Machine-readable name (matches ExitCode enum key). */ name: string; /** LAFS error category for protocol conformance. */ category: LAFSErrorCategory; /** Default human-readable message. */ message: string; /** Default fix suggestion (copy-paste command or instruction). */ fix?: string; /** HTTP status code for API responses. */ httpStatus: number; /** Whether retry may succeed. */ recoverable: boolean; /** LAFS-style string error code (E_CLEO_*). */ lafsCode: string; } /** * The unified error catalog. Keyed by numeric ExitCode value. */ export declare const ERROR_CATALOG: ReadonlyMap; /** * Look up an error definition by exit code. */ export declare function getErrorDefinition(code: number): ErrorDefinition | undefined; /** * Look up an error definition by LAFS string code. */ export declare function getErrorDefinitionByLafsCode(lafsCode: string): ErrorDefinition | undefined; /** * Get all error definitions as an array. */ export declare function getAllErrorDefinitions(): ErrorDefinition[]; //# sourceMappingURL=error-catalog.d.ts.map