/** * Base API Error class */ export declare class APIError extends Error { status?: number | undefined; code?: string | undefined; data?: any | undefined; constructor(message: string, status?: number | undefined, code?: string | undefined, data?: any | undefined); } /** * Authentication/Authorization error (401, 403) */ export declare class AuthError extends APIError { constructor(message: string, status?: number, code?: string, data?: any); } /** * Validation error (400, 422) */ export declare class ValidationError extends APIError { constructor(message: string, status?: number, code?: string, data?: any); } /** * Resource not found error (404) */ export declare class NotFoundError extends APIError { constructor(message: string, status?: number, code?: string, data?: any); } /** * Rate limit error (429) */ export declare class RateLimitError extends APIError { retryAfter?: number | undefined; constructor(message: string, retryAfter?: number | undefined, status?: number, code?: string, data?: any); } /** * Network/connection error */ export declare class NetworkError extends APIError { originalError?: any | undefined; constructor(message: string, originalError?: any | undefined); } /** * Extract error message from unknown error */ export declare function getErrorMessage(error: unknown): string; //# sourceMappingURL=index.d.ts.map