/** * Navidrome MCP Server - Error Formatting Utility * Copyright (C) 2025 * SPDX-License-Identifier: AGPL-3.0-or-later */ /** A thrown value need not be an Error, so a non-Error is stringified instead of dropped. */ export declare function errorMessage(err: unknown): string; export declare class ErrorFormatter { /** A ZodError's own message is a JSON dump of its issues, too noisy for the agent to act on. */ private static extractMessage; static httpRequest(operation: string, response: Response, errorText?: string): string; static subsonicApi(endpoint: string, response: Response): string; static subsonicResponse(errorMessage?: string): string; static toolExecution(toolName: string, error: unknown): string; static toolUnknown(toolName: string): string; static notFound(resourceType: string, identifier: string): string; static authentication(details?: string): string; static lastfmResponse(message?: string): string; static configValidation(messages: string[]): string; static configMissing(service: string, configKey: string): string; /** A server that runs from env never reads the store switch, so the message also names the env switch. */ static featureOff(feature: string, switchKey: string, envSwitch: string): string; static unknownResource(resourceUri: string): string; } //# sourceMappingURL=error-formatter.d.ts.map