export declare class NotionMCPError extends Error { message: string; code: string; suggestion?: string | undefined; details?: any; constructor(message: string, code: string, suggestion?: string | undefined, details?: any); toJSON(): { error: string; code: string; message: string; suggestion: string | undefined; details: any; }; } /** * Enhance Notion API error with helpful context */ export declare function enhanceError(error: any): NotionMCPError; /** * Find the closest matching string from a list of valid options. * Uses Levenshtein-like similarity (simple character overlap). */ export declare function findClosestMatch(input: string, validOptions: string[]): string | null; /** * Create AI-readable error message */ export declare function aiReadableMessage(error: NotionMCPError): string; /** * Suggest fixes based on error */ export declare function suggestFixes(error: NotionMCPError): string[]; /** * Wrap async function with error handling */ export declare function withErrorHandling(fn: (...args: Args) => Promise): (...args: Args) => Promise; /** * Retry with exponential backoff */ export declare function retryWithBackoff(fn: () => Promise, options?: { maxRetries?: number; initialDelay?: number; maxDelay?: number; backoffMultiplier?: number; }): Promise; //# sourceMappingURL=errors.d.ts.map