/** * Error Suggestions — Fuzzy Pattern Matching for Error Messages * * Maps common error message patterns to actionable suggestions and * specific error codes. Used by: * 1. MemoryJournalMcpError constructor — auto-refines generic codes * 2. formatHandlerError() — enriches raw Error responses */ interface ErrorSuggestion { /** RegExp to test against error messages (case-insensitive) */ pattern: RegExp; /** Human-readable suggestion for resolving the error */ suggestion: string; /** Optional specific code to auto-refine generic codes into */ code?: string; } /** Codes that can be refined to a more specific code when a pattern matches */ export declare const GENERIC_CODES: Set; export declare const ERROR_SUGGESTIONS: ErrorSuggestion[]; /** * Find the first matching suggestion for an error message. * Returns `undefined` if no pattern matches. */ export declare function matchSuggestion(message: string): { suggestion: string; code?: string | undefined; } | undefined; export {}; //# sourceMappingURL=suggestions.d.ts.map