/** * Error classes for the Sunsama API wrapper */ /** * Base error class for all Sunsama-related errors */ export declare class SunsamaError extends Error { readonly code?: string | undefined; readonly cause?: Error | undefined; constructor(message: string, code?: string | undefined, cause?: Error | undefined); } /** * Error thrown when API requests fail */ export declare class SunsamaApiError extends SunsamaError { readonly status: number; readonly response?: unknown | undefined; constructor(message: string, status: number, response?: unknown | undefined, code?: string); /** * Check if this is a client error (4xx status code) */ isClientError(): boolean; /** * Check if this is a server error (5xx status code) */ isServerError(): boolean; /** * Check if this is a rate limit error */ isRateLimitError(): boolean; /** * Check if this is an authentication error */ isAuthError(): boolean; } /** * Error thrown when client configuration is invalid */ export declare class SunsamaConfigError extends SunsamaError { constructor(message: string, code?: string); } /** * Error thrown when authentication fails */ export declare class SunsamaAuthError extends SunsamaError { constructor(message: string, code?: string, cause?: Error); } /** * Error thrown when request validation fails */ export declare class SunsamaValidationError extends SunsamaError { readonly field?: string | undefined; constructor(message: string, field?: string | undefined, code?: string); } /** * Error thrown when network requests fail */ export declare class SunsamaNetworkError extends SunsamaError { constructor(message: string, cause?: Error); } /** * Error thrown when requests timeout */ export declare class SunsamaTimeoutError extends SunsamaNetworkError { constructor(timeout: number); } //# sourceMappingURL=index.d.ts.map