/** * Time utility for deterministic testing. * Provides a clean API for freezing, advancing, and restoring system time. * Built on top of Vitest's timer system. */ export declare class Time { /** * Freezes time at a specific date for the duration of the provided function. * Automatically restores real time even if the function throws an error. * * @example * await Time.frozen('2024-05-20', async () => { * const now = new Date(); * expect(now.toISOString()).toContain('2024-05-20'); * }); */ static frozen(date: string | Date | number, fn: () => Promise | T): Promise; /** * Freezes system time. * Use this in beforeEach or for sequential time manipulation. * Remember to call Time.restore() in afterEach! */ static freeze(date: string | Date | number): void; /** * Advances the frozen time by a specific amount of milliseconds. */ static advance(ms: number): void; /** * Restores system time to reality. */ static restore(): void; } //# sourceMappingURL=Time.d.ts.map