import { WBAPIError } from './base-error'; /** * Rate limit error thrown when API rate limits are exceeded. * * This error is thrown for 429 Too Many Requests responses. * The SDK's RetryHandler automatically retries rate-limited requests * after the specified delay, so consumers typically don't need to * handle this error manually. * * @example * ```typescript * import { RateLimitError } from 'daytona-wildberries-typescript-sdk'; * * try { * await sdk.products.createProduct(data); * } catch (error) { * if (error instanceof RateLimitError) { * console.log(`Rate limited. SDK will retry after ${error.retryAfter}ms`); * // The SDK automatically retries, so you usually don't need to do anything * } * } * ``` */ export declare class RateLimitError extends WBAPIError { /** * Milliseconds to wait before retrying the request */ readonly retryAfter: number; /** * Creates a rate limit error * * @param message - Error message (defaults to standard rate limit message) * @param retryAfter - Milliseconds until retry is allowed * @param response - API response body if available * @param requestId - Correlation ID for debugging * @param origin - Origin service identifier from RFC 7807 responses * @param timestamp - ISO 8601 timestamp from RFC 7807 responses */ constructor(message: string | undefined, retryAfter: number, response?: unknown, requestId?: string, origin?: string, timestamp?: string); /** * Returns user-friendly error message with retry timing information * * @returns Error message with retry delay and automatic handling notice */ getUserMessage(): string; /** * Custom JSON serialization to preserve retryAfter property * * @returns Object representation including retryAfter timing */ toJSON(): { name: string; message: string; statusCode: number; retryAfter: number; response?: unknown; requestId?: string; }; } //# sourceMappingURL=rate-limit-error.d.ts.map