import { MetaAdData } from './types'; export declare class MetaAdsScraper { private client; private readonly ACTOR_ID; constructor(apiToken?: string); /** * Scrapes Meta Ad Library data from the provided URL * @param metaAdLibraryUrl - The Meta Ad Library URL to scrape * @param options - Optional configuration for the scraper * @returns Promise - Array of scraped ad data */ getAds(metaAdLibraryUrl: string, options?: { maxResults?: number; useExistingRun?: boolean; }): Promise; /** * Validates that the provided URL is a valid Meta Ad Library URL */ private validateMetaAdLibraryUrl; /** * Waits for the actor run to complete */ private waitForRunCompletion; /** * Gets information about a specific actor run */ getRunInfo(runId: string): Promise; /** * Lists recent runs for the Facebook Ads Library scraper */ listRecentRuns(limit?: number): Promise; /** * Checks for existing successful runs with the same URL and maxResults * @param adLibraryUrl - The Meta Ad Library URL to check for * @param maxResults - The maximum number of results to check for * @returns Promise - The matching run if found, null otherwise */ private findExistingRun; /** * Gets the input parameters for a specific run from its key-value store * @param runId - The run ID to get input for * @returns Promise - The input parameters or null if not found */ private getRunInput; /** * Fetches results from an existing run's dataset * @param run - The existing run to fetch results from * @returns Promise - Array of scraped ad data */ private fetchResultsFromExistingRun; } export declare function getAds(metaAdLibraryUrl: string, options?: { apiToken?: string; maxResults?: number; useExistingRun?: boolean; }): Promise; //# sourceMappingURL=meta_ads_scraper.d.ts.map