import { UsermavenClient } from '../core/client'; /** * Tracks SPA URL changes after the first page load. * Initial pageview is sent by script-tag init or explicit client.pageview() calls. */ export declare class PageviewTracking { private client; private lastPageUrl; constructor(client: UsermavenClient); /** * No-op by design: lastPageUrl is set to window.location.href before this runs, * and trackPageview() only sends after a URL change. Initial pageview is owned * by script-tag init or explicit client.pageview() calls. * * If we change this to emit the initial pageview, UsermavenClient must initialize * anonymousId before constructing PageviewTracking, because pageview payloads * read anonymousId during event creation. */ private trackInitialPageview; private initializePageviewTracking; private handlePageview; private checkForUrlChange; private trackPageview; }