import type { Page } from "playwright-core"; import type { CslItem } from "../../core/csl-json/types.js"; /** Raw metadata extracted from the page via page.evaluate() */ interface RawMetadata { jsonLd: unknown[]; citation: Record; dc: Record; og: Record; title: string; } /** * Extract raw metadata from a Document-like object. * Usable both from page.evaluate (browser) and JSDOM (tests). * * SYNC NOTE: The DOM scraping logic here must stay in sync with the * inline page.evaluate string in extractMetadata() below. * If you change selectors or extraction logic here, update the * page.evaluate block as well. */ export declare function extractRawMetadataFromDocument(doc: { querySelectorAll(sel: string): Iterable<{ getAttribute(n: string): string | null; textContent: string | null; }>; title: string; }): RawMetadata; /** * Extract metadata from a browser page using multiple sources. * * Priority: JSON-LD → citation_* → Dublin Core → Open Graph → HTML */ export declare function extractMetadata(page: Page): Promise; export {}; //# sourceMappingURL=url-metadata.d.ts.map