/** * Error Catalog — Structured error codes with helpful messages. * * @example * ``` * AP001: Adapter connection failed * → Check your API key in .env or OPENAI_API_KEY * AP002: Trace format invalid * → Ensure trace has 'steps' array with 'type' and 'content' * AP003: Budget exceeded * → Current spend: $5.23, limit: $5.00 * ``` */ export interface ErrorInfo { code: string; title: string; hint: string; category: ErrorCategory; } export type ErrorCategory = 'adapter' | 'trace' | 'budget' | 'config' | 'test' | 'io' | 'internal'; export declare class AgentProbeError extends Error { readonly code: string; readonly hint: string; readonly category: ErrorCategory; readonly context?: Record; constructor(code: string, context?: Record); /** * Format for CLI display. */ format(): string; } /** * Get error info by code. */ export declare function getError(code: string): ErrorInfo | undefined; /** * Get all error codes. */ export declare function getAllErrors(): ErrorInfo[]; /** * Get errors by category. */ export declare function getErrorsByCategory(category: ErrorCategory): ErrorInfo[]; /** * Format an error catalog entry for display. */ export declare function formatError(info: ErrorInfo): string; /** * Format all errors for CLI help display. */ export declare function formatErrorCatalog(): string; //# sourceMappingURL=errors.d.ts.map