/**
 * Error response format for Linode API errors
 */
export interface LinodeErrorResponse {
    errors: Array<{
        field?: string;
        reason: string;
    }>;
}
/**
 * Formats an error message from a Linode API error response
 *
 * @param error The error from the Linode API
 * @returns A formatted error message
 */
export declare function formatLinodeError(error: any): string;
/**
 * Wraps a tool handler with error handling
 *
 * @param handler The handler function to wrap
 * @returns A wrapped handler function with error handling
 */
export declare function withErrorHandling<P, R>(handler: (params: P, context: any) => Promise<R>): (params: P, context: any) => Promise<R>;
/**
 * Helper function to register a tool with error handling
 */
export interface ToolRegistration {
    name: string;
    description: string;
    schema: any;
    handler: (params: any, extra: any) => Promise<any>;
}
/**
 * Registers all tools with error handling
 *
 * @param server The MCP server
 * @param tools Array of tool registrations
 */
export declare function registerToolsWithErrorHandling(server: any, tools: ToolRegistration[]): void;
