/** * Base error class for all GPT Platform SDK errors */ export declare class GptCoreError extends Error { readonly name: string; readonly statusCode?: number; readonly code?: string; readonly requestId?: string; readonly headers?: Record; readonly body?: unknown; cause?: Error; constructor(message: string, options?: { statusCode?: number; code?: string; requestId?: string; headers?: Record; body?: unknown; cause?: Error; }); } /** * Authentication errors (401) */ export declare class AuthenticationError extends GptCoreError { constructor(message?: string, options?: ConstructorParameters[1]); } /** * Authorization/Permission errors (403) */ export declare class AuthorizationError extends GptCoreError { constructor(message?: string, options?: ConstructorParameters[1]); } /** * Resource not found errors (404) */ export declare class NotFoundError extends GptCoreError { constructor(message?: string, options?: ConstructorParameters[1]); } /** * Validation errors (400, 422) */ export declare class ValidationError extends GptCoreError { readonly errors?: Array<{ field?: string; message: string; }>; constructor(message?: string, errors?: Array<{ field?: string; message: string; }>, options?: ConstructorParameters[1]); } /** * Rate limiting errors (429) */ export declare class RateLimitError extends GptCoreError { readonly retryAfter?: number; constructor(message?: string, retryAfter?: number, options?: ConstructorParameters[1]); } /** * Network/connection errors */ export declare class NetworkError extends GptCoreError { constructor(message?: string, options?: ConstructorParameters[1]); } /** * Timeout errors */ export declare class TimeoutError extends GptCoreError { constructor(message?: string, options?: ConstructorParameters[1]); } /** * Server errors (500+) */ export declare class ServerError extends GptCoreError { constructor(message?: string, options?: ConstructorParameters[1]); } /** * Parse error response and throw appropriate error class */ export declare function handleApiError(error: unknown): never; //# sourceMappingURL=index.d.ts.map