import "../schema-BogGdbdV.js";
import "../types-DoT0an28.js";
import "../client-njqQAP-R.js";
import { ApiClientError, ApiError, ApiServerError } from "../errors-CyAWBU2S.js";
import "../index-NfFbnYt3.js";
import { ConfigurationError, UserInputError } from "../errors-D9WEvbBw.js";

//#region src/internal/error-handling.d.ts
/**
 * Type guard to identify user input validation errors.
 */
declare function isUserInputError(error: unknown): error is UserInputError;
/**
 * Type guard to identify configuration errors.
 */
declare function isConfigurationError(error: unknown): error is ConfigurationError;
/**
 * Type guard to identify API errors.
 */
declare function isApiError(error: unknown): error is ApiError;
/**
 * Type guard to identify API client errors (4xx).
 */
declare function isApiClientError(error: unknown): error is ApiClientError;
/**
 * Type guard to identify API server errors (5xx).
 */
declare function isApiServerError(error: unknown): error is ApiServerError;
/**
 * Format an error for user display with markdown formatting.
 * This is used by tool handlers to format errors for MCP responses.
 *
 * SECURITY: Only return trusted error messages to prevent prompt injection vulnerabilities.
 * We trust: Sentry API errors, our own UserInputError/ConfigurationError messages, and system templates.
 */
declare function formatErrorForUser(error: unknown): Promise<string>;
//# sourceMappingURL=error-handling.d.ts.map
//#endregion
export { formatErrorForUser, isApiClientError, isApiError, isApiServerError, isConfigurationError, isUserInputError };
//# sourceMappingURL=error-handling.d.ts.map