/** * @file Test Setup for Library Tests * @description Provides test-specific setup for lib module tests including * providers, mocks, and utilities. This extends the global test setup. */ /** * In-memory storage for tests */ export declare class TestStorage { private store; get length(): number; getItem(key: string): string | null; setItem(key: string, value: string): void; removeItem(key: string): void; clear(): void; key(index: number): string | null; } /** * Advance all timers by a specified amount */ export declare function advanceTimers(ms: number): void; /** * Run all pending timers */ export declare function runAllTimers(): void; /** * Run all pending microtasks */ export declare function flushPromises(): Promise; /** * Wait for a condition to be true */ export declare function waitFor(condition: () => T | Promise, options?: { timeout?: number; interval?: number; }): Promise; /** * Wait for the next tick */ export declare function nextTick(): Promise; /** * Generate a unique ID for tests */ export declare function generateTestId(prefix?: string): string; /** * Create a mock timestamp */ export declare function createMockTimestamp(offsetMs?: number): string; export interface TestContext { storage: TestStorage; } /** * Create a fresh test context */ export declare function createTestContext(): TestContext;