/** * PLG Error Code Mapping * * Maps ErrorType + ErrorCode combinations to numeric PLG-NNNN identifiers * for user-facing error display and documentation lookup. * * Category ranges: * 1000 = network, 2000 = validation, 3000 = filesystem, 4000 = source, * 5000 = auth, 6000 = config, 7000 = workflow, 8000 = security * * @since v2.2.10 */ /** * Error type discriminator (local copy to avoid import cycle with error-types.ts) */ type ErrorType = 'network' | 'validation' | 'filesystem' | 'source' | 'auth' | 'config' | 'workflow' | 'security'; /** * Get the PLG-NNNN string for an error type + code combination. * * Returns "PLG-0000" for unknown combinations. */ export declare function getPlgCode(type: ErrorType, code: string): string; /** * Parse a PLG-NNNN string back to its error type and code. * * Returns null if the PLG code is not recognized. */ export declare function parsePlgCode(plgCode: string): { type: ErrorType; code: string; } | null; export {}; //# sourceMappingURL=error-codes.d.ts.map