/** * P6: Gap Pass — LLM-guided second crawl pass * * After the primary BFS crawl completes, this module: * 1. Sends the discovered screen list to an LLM for gap analysis * 2. HEAD-validates each suggested URL * 3. Returns confirmed gap URLs for targeted re-crawl * * The caller (crawler.ts) is responsible for actually visiting the confirmed * URLs with the existing browser — this module only identifies them. */ export interface GapCandidate { category: string; urlPatterns: string[]; confidence: number; rationale: string; confirmedUrl: string | null; headStatus: number | null; } interface DiscoveredScreen { url: string; name?: string; elements?: number; } interface LlmCfg { provider: string; model: string; apiKey?: string; baseUrl?: string; } /** * Run LLM gap analysis + HEAD validation. * Returns candidates with `confirmedUrl` set for those where HEAD returned 200. */ export declare function runGapAnalysis(screens: DiscoveredScreen[], appUrl: string, llmCfg: LlmCfg | null | undefined): Promise; export {};