import { InheritableEventEmitter } from '@akolos/event-emitter'; export interface LazyStopwatchEvents { started: [source: LazyStopwatch]; stopped: [source: LazyStopwatch]; sought: [from: number, source: LazyStopwatch]; updated: [dt: number, source: LazyStopwatch]; } export interface LazyStopwatchOpts { startTime?: number; } export declare class LazyStopwatch extends InheritableEventEmitter { readonly startTime: number; protected _time: number; private _stopped; private timeOfLastUpdate; get time(): number; get stopped(): boolean; constructor(opts?: LazyStopwatchOpts); seek(time: number): this; update(now?: number): number; start(): this; stop(): this; }