/** * API Response Types */ export interface ApiResponse { data: T; cached: boolean; } export interface SearchResponse { request_info: { success: boolean; credits_used: number; credits_remaining: number; }; search_results: SearchResult[]; pagination?: { total_results: number; current_page: number; total_pages: number; }; } export interface SearchResult { position: number; asin: string; title: string; link: string; recent_sales?: string; price?: { value: number; currency: string; raw: string; }; rating?: number; ratings_total?: number; image?: string; } export interface ProductResponse { request_info: { success: boolean; credits_used: number; credits_remaining: number; }; product: Product; } export interface Product { asin: string; title: string; link: string; brand?: string; recent_sales?: string; buybox_winner?: { price: { value: number; currency: string; raw: string; }; new_offers_count: number; is_prime?: boolean; availability?: { raw: string; }; fulfillment?: { type: string; is_sold_by_amazon: boolean; is_fulfilled_by_amazon: boolean; is_sold_by_third_party: boolean; is_fulfilled_by_third_party: boolean; }; }; rating?: number; ratings_total?: number; rating_breakdown?: { five_star: { percentage: number; count: number; }; four_star: { percentage: number; count: number; }; three_star: { percentage: number; count: number; }; two_star: { percentage: number; count: number; }; one_star: { percentage: number; count: number; }; }; top_reviews?: Review[]; images?: Array<{ link: string; }>; videos?: Array<{ link: string; }>; feature_bullets?: string[]; description?: string; categories?: Array<{ name: string; link: string; category_id: string; }>; specifications?: Array<{ name: string; value: string; }>; first_available?: { raw: string; utc: string; }; variants?: Array<{ asin: string; title: string; is_current_product: boolean; }>; } export interface Review { id: string; title: string; body: string; rating: number; date: { raw: string; utc: string; }; verified_purchase: boolean; helpful_votes?: number; } export interface ReviewsResponse { reviews: Array<{ id: string; title: string; body: string; rating: number; date: string; verified_purchase: boolean; helpful_votes: number; vine_program: boolean; user_name: string; images: string[]; variation: string | null; }>; summary: { product_title: string; product_rating: string; total_ratings: number; rating_breakdown: { five_star: number; four_star: number; three_star: number; two_star: number; one_star: number; }; } | null; total_returned: number; pages_fetched: number[]; asin: string; domain: string; } //# sourceMappingURL=api.d.ts.map