import { type LaunchOpts } from './options.js'; import { htmlToMarkdown } from './utils/markdown.js'; import { maybeFileOrBase64 } from './output.js'; export type FetchOpts = LaunchOpts & { waitUntil?: 'load' | 'domcontentloaded' | 'networkidle' | 'commit'; navTimeout?: number; referer?: string; wantText?: boolean; wantHtml?: boolean; wantMarkdown?: boolean; screenshotPath?: string; fullPage?: boolean; pdfPath?: string; selector?: string; }; export type FetchResult = { url: string; title: string; status: 'ok' | 'navigation-failed'; text?: string; html?: string; markdown?: ReturnType; screenshot?: ReturnType; pdf?: ReturnType; }; export declare function oneShotFetch(url: string, opts: FetchOpts): Promise; export type ScrapeOpts = LaunchOpts & { selector: string; multi?: boolean; attr?: string; waitUntil?: 'load' | 'domcontentloaded' | 'networkidle' | 'commit'; navTimeout?: number; }; export type ScrapeResult = { url: string; title: string; count: number; items: Array<{ text: string; html?: string; attr?: string | null; }>; }; export declare function oneShotScrape(url: string, opts: ScrapeOpts): Promise; //# sourceMappingURL=one-shot.d.ts.map