/** * Runs `react` the first time the visitor reaches for a link, and never on a * visit that reaches for none (AGL-2710). * * Work a navigation will need — a chunk to fetch, a plugin to register — has * to start before the click or it lands in front of the very thing it was * meant to cover. Starting it on a timer after first paint achieves that, and * charges every page view for it: on a page billed per view, bytes fetched at * idle cost exactly what bytes fetched eagerly cost, plus the round trip. * * Pointing at, touching or tabbing to a link is the earliest honest evidence * that a navigation may happen, and it precedes the click by long enough to * cover the work. One delegated listener rather than a handler per link, so * anchors rendered by a plugin or a hand-built menu count too; the capture * phase, so a link that stops propagation in its own handlers cannot suppress * it. Returns the detach function a caller's effect should return. */ export declare function onFirstNavigationIntent(react: () => void): () => void;