import type { Page } from "patchright"; export interface Reference { href: string; text: string; aria_label?: string; title?: string; heading?: string; } export interface ExtractedSection { text: string; references: Reference[]; error?: { message: string; }; } export interface PersonProfile { url: string; sections: Record; references?: Record; section_errors?: Record; } /** * LinkedIn extractor — innerText-based, not selector-based. * Ported from stickerdaniel/linkedin-mcp-server scraping/extractor.py. * * v0 scope: person profile only (skips overlay sections, URN, debug-trace). */ export declare class LinkedInExtractor { private readonly page; constructor(page: Page); /** Navigate with auth-barrier checks and one remember-me retry. */ private navigate; /** * Single attempt: navigate, dismiss modals, scroll/click "Show more", extract. * Returns RATE_LIMITED_MSG when the page returns only chrome. */ private extractPageOnce; /** Extract a page with one rate-limit retry. */ extractPage(url: string, maxScrolls: number | null): Promise; /** * Run the JS extractor inside the page. Returns innerText + a flat list of * anchor metadata enriched with the nearest heading. Mirrors * extractor.py:_extract_root_content. */ private extractRootContent; /** * Scrape a person profile across the requested sections. Skips overlay * sections (e.g. contact_info) in v0. */ scrapePerson(username: string, requested: Set, maxScrolls?: number | null): Promise; } //# sourceMappingURL=extractor.d.ts.map