export interface RouteVisit { route: string; from: string | null; enteredAt: number; leftAt: number | null; epoch: number; } export type RouteHistoryMode = "listener" | "sampled"; export interface RouteHistoryResult { mode: RouteHistoryMode; visits: RouteVisit[]; } export declare function routeHistorySize(): number; export declare function formatDwell(ms: number): string; export declare function formatRouteTrail(result: RouteHistoryResult, now: number): string; export declare function buildRouteHistoryInstallSource(cap: number): string; export declare function buildRouteHistoryReadSource(): string; export declare function installRouteHistory(device?: string): Promise; export declare function readRouteHistory(device?: string): Promise; export declare function resetSampledRoutes(): void; export declare function sampledVisits(deviceKey: string): RouteVisit[]; export declare function mergeListenerEntries(deviceKey: string, entries: Array>, epoch: number): void; export declare function recordSampledRoute(deviceKey: string, route: string, epoch: number, now: number): void; //# sourceMappingURL=routeHistory.d.ts.map