Files
rrweb/typings/replay/timer.d.ts
2026-04-01 12:00:00 +08:00

15 lines
503 B
TypeScript

import { playerConfig, actionWithDelay, eventWithTime } from '../types';
export declare class Timer {
timeOffset: number;
private actions;
private config;
private raf;
constructor(config: playerConfig, actions?: actionWithDelay[]);
addAction(action: actionWithDelay): void;
addActions(actions: actionWithDelay[]): void;
start(): void;
clear(): void;
private findActionIndex;
}
export declare function getDelay(event: eventWithTime, baselineTime: number): number;