import type { UrlArchiveFormat, UrlConfig } from "../../config/schema.js"; import type { CslItem } from "../../core/csl-json/types.js"; import { type ArchiveResult } from "./url-archive.js"; /** * Options for URL fetching. */ export interface UrlFetchOptions { urlConfig: UrlConfig; archiveFormat?: UrlArchiveFormat | undefined; noArchive?: boolean | undefined; } /** * Result of fetching a URL. */ export interface UrlFetchResult { item: CslItem; fulltext: string; archive?: ArchiveResult | undefined; warnings: string[]; } /** * Fetch a single URL and extract metadata, fulltext, and archive. * * Launches and closes a browser for this single URL. * For multiple URLs, use fetchUrls() to share a browser instance. */ export declare function fetchUrl(url: string, options: UrlFetchOptions): Promise; /** * Fetch multiple URLs reusing a single browser instance. * * Each URL is processed sequentially in a new page within the same browser. * Returns one result per URL (success or error). */ export declare function fetchUrls(urls: string[], options: UrlFetchOptions): Promise>; //# sourceMappingURL=url-fetcher.d.ts.map