export declare class McpError extends Error {
    readonly code: number;
    readonly details?: unknown;
    constructor(message: string, code: number, details?: unknown);
    toJSON(): Record<string, unknown>;
}
export declare class ClientError extends McpError {
    constructor(message: string, details?: unknown);
}
export declare class ServerError extends McpError {
    constructor(message: string, details?: unknown);
}
export declare class NetworkError extends McpError {
    constructor(message: string, details?: unknown);
}
export declare class AuthError extends McpError {
    constructor(message: string, details?: unknown);
}
export declare function isAuthenticationError(errorMessage: string): boolean;
export declare function createServerAuthError(target: string, options?: {
    sessionName?: string;
    originalError?: Error;
}): AuthError;
export declare function isMcpError(error: unknown): error is McpError;
export declare function isShutdownError(error: unknown): boolean;
export declare function toMcpError(error: unknown): McpError;
export declare function formatHumanError(error: unknown, verbose?: boolean): string;
//# sourceMappingURL=errors.d.ts.map