/** * P2: JS Router Detection * * Scans the loaded page for client-side route tables declared by React Router v6, * Vue Router, Angular Router, or custom window globals. Supplements the existing * history.pushState interception (which only captures runtime navigation) with a * static analysis of routes declared in the JS bundle. * * Called once per page after goto(). Runs entirely in-browser via page.evaluate(). * Adds discovered routes to the BFS frontier so the crawler visits them. */ /** * Extract absolute page URLs from the current page's JS router config. * Returns deduplicated absolute URLs (same origin). Dynamic segments (:id, *) * are skipped — the crawler can't resolve them without knowing valid IDs. */ export declare function detectJsRoutes(page: any, origin: string): Promise;