/** * Amazon Site Handler * * Extracts product data from Amazon product pages. * Uses multiple extraction methods: * 1. JSON-LD structured data (preferred) * 2. HTML parsing with known selectors * 3. State data from embedded scripts * * Note: Amazon has aggressive bot detection. When direct fetches get * challenged, the cascade falls through to Playwright rendering. * * @see https://github.com/omkarcloud/amazon-scraper */ import { BaseSiteHandler, type FetchFunction, type SiteHandlerOptions, type SiteHandlerResult } from './types.js'; export declare class AmazonHandler extends BaseSiteHandler { readonly name = "Amazon"; readonly strategy: "api:amazon"; private static readonly MARKETPLACES; canHandle(url: string): boolean; extract(url: string, fetch: FetchFunction, opts: SiteHandlerOptions): Promise; /** * Parse Amazon URL */ private parseAmazonUrl; /** * Check if page has CAPTCHA */ private hasCaptcha; /** * Extract product data */ private extractProduct; /** * Extract product from JSON-LD structured data */ private extractFromStructuredData; /** * Extract product from HTML using known selectors */ private extractFromHtml; /** * Parse price string */ private parsePrice; /** * Parse rating text */ private parseRating; /** * Parse review count text */ private parseReviewCount; /** * Format product for output */ private formatProduct; /** * Extract search results */ private extractSearch; } export declare const amazonHandler: AmazonHandler; //# sourceMappingURL=amazon-handler.d.ts.map