import { MCPError } from './types.js'; export declare class MCPErrorFactory { static validation(message: string, hint?: string, detail?: unknown): MCPError; static auth(message: string, hint?: string): MCPError; static rateLimit(message: string, retryAfter?: number): MCPError; static api(message: string, apiName?: string, detail?: unknown): MCPError; static system(message: string, retryable?: boolean, detail?: unknown): MCPError; static unknownAPI(apiName: string): MCPError; static invalidFields(apiName: string, invalidFields: string[], validFields: string[]): MCPError; static missingParams(apiName: string, missingParams: string[]): MCPError; static invalidParamType(apiName: string, paramName: string, expectedType: string, actualValue: unknown): MCPError; } export declare function withErrorBoundary(fn: (...args: T) => Promise, context: string): (...args: T) => Promise; export declare function isMCPError(error: unknown): error is MCPError; export declare function formatErrorForUser(error: MCPError): string; //# sourceMappingURL=errors.d.ts.map