/** * Error type definitions for NeuBird MCP Server */ export type ErrorType = 'authentication' | 'api' | 'validation' | 'investigation' | 'unknown'; /** * Base error class for NeuBird MCP errors (class kept as HawkeyeError for backward compat) */ export declare class HawkeyeError extends Error { readonly type: ErrorType; readonly details?: any; readonly recoverySuggestions?: string[]; constructor(type: ErrorType, message: string, details?: any, recoverySuggestions?: string[]); /** * Convert to JSON format for MCP tool responses */ toJSON(): { error: { type: ErrorType; message: string; details: any; recovery_suggestions: string[] | undefined; }; }; } /** * Authentication-related errors */ export declare class AuthenticationError extends HawkeyeError { constructor(message: string, details?: any, recoverySuggestions?: string[]); } /** * API-related errors (network, HTTP status codes, etc.) */ export declare class ApiError extends HawkeyeError { readonly statusCode?: number; readonly response?: any; constructor(message: string, statusCode?: number, response?: any, recoverySuggestions?: string[]); } /** * Validation errors (invalid inputs, schema violations, etc.) */ export declare class ValidationError extends HawkeyeError { constructor(message: string, details?: any, recoverySuggestions?: string[]); } /** * Investigation-related errors (session creation, timeouts, etc.) */ export declare class InvestigationError extends HawkeyeError { constructor(message: string, details?: any, recoverySuggestions?: string[]); } /** * Error response format for MCP tools */ export interface ErrorResponse { error: { type: ErrorType; message: string; details?: any; recovery_suggestions?: string[]; }; }