1 | import { Clock } from "./system.js";
|
2 | export interface SimulatedClock extends Clock {
|
3 | start(speed: number): void;
|
4 | increment(ms: number): void;
|
5 | set(ms: number): void;
|
6 | }
|
7 | export declare class SimulatedClock implements SimulatedClock {
|
8 | private timeouts;
|
9 | private _now;
|
10 | private _id;
|
11 | private _flushing;
|
12 | private _flushingInvalidated;
|
13 | now(): number;
|
14 | private getId;
|
15 | setTimeout(fn: (...args: any[]) => void, timeout: number): number;
|
16 | clearTimeout(id: number): void;
|
17 | private flushTimeouts;
|
18 | }
|