import { Browser, Page } from 'playwright'; import { PlaywrightScraper } from '../base/scraper.interface.js'; import { SearchFilters, SearchResult, Listing, Result, ListingId, OlxDomain, DomainConfig, ListingDetailsOptions } from '../../core/types.js'; export declare abstract class BaseOlxScraper extends PlaywrightScraper { private static readonly URL_CACHE_LIMIT; protected readonly domainConfig: DomainConfig; private readonly urlCache; constructor(domain: OlxDomain, browser: Browser); validateQuery(query: unknown): query is SearchFilters; scrape(filters: SearchFilters, signal?: AbortSignal): Promise>; private performSearch; protected buildSearchUrl(filters: SearchFilters): string; private waitForSearchResults; private extractListings; /** Bounded so a long-lived server cannot accumulate every URL it has seen. */ private rememberUrl; private extractPaginationInfo; /** Every domain encodes the id the same way: .../slug-ID.html */ protected extractListingId(url: string): ListingId; getListingDetails(listingId: ListingId, signal?: AbortSignal, options?: ListingDetailsOptions): Promise>; private performGetListingDetails; /** * Fallback for an id that was never seen by a search: look it up through the * domain's own listing search. The id is encoded rather than slugified, since * it is case-sensitive. */ protected findListingUrl(listingId: ListingId, page: Page): Promise; private extractSellerInfo; } //# sourceMappingURL=base-olx.scraper.d.ts.map