import type { Duration, RelativeTime } from '@octopus-sdk/browser-core'; import type { PageStateServerEntry } from '../../rawRumEvent.type'; export declare const MAX_PAGE_STATE_ENTRIES = 4000; export declare const MAX_PAGE_STATE_ENTRIES_SELECTABLE = 500; export declare const PAGE_STATE_CONTEXT_TIME_OUT_DELAY: number; export declare enum PageState { ACTIVE = "active", PASSIVE = "passive", HIDDEN = "hidden", FROZEN = "frozen", TERMINATED = "terminated" } export type PageStateEntry = { state: PageState; startTime: RelativeTime; }; export interface PageStateHistory { wasInPageStateAt: (pageState: PageState, relativeTime: RelativeTime) => boolean; wasInPageStateDuringPeriod: (state: PageState, startTime: RelativeTime, duration: Duration) => boolean; findAll: (startTime: RelativeTime, duration: Duration) => PageStateServerEntry[] | undefined; addPageState: (nextPageState: PageState, startTime?: RelativeTime) => void; stop: () => void; } export declare function startPageStateHistory(): PageStateHistory;