import type { AbTest, IBlobStore } from '../types'; import type { CachedAbTest, TestsCache } from './types'; /** * Pre-compute weights and lookups for a test. */ export declare function computeCachedTest(test: AbTest): CachedAbTest; /** * Normalize a URL path for consistent matching. * - Removes trailing slashes (except for root) * - Ensures leading slash */ export declare function normalizePath(path: string): string; /** * Get cached tests, refreshing from store if needed. * * @param store - The blob store to fetch tests from * @param cacheTtlMs - Cache time-to-live in milliseconds * @param devTestData - Optional test data for development mode * @returns Map of tests indexed by normalized control path */ export declare function getCachedTests(store: IBlobStore, cacheTtlMs: number, devTestData?: AbTest[]): Promise>; /** * Clear the test cache. Useful for testing or forcing a refresh. */ export declare function clearTestCache(): void; /** * Get the current cache state. Useful for debugging. */ export declare function getTestCacheState(): TestsCache | null; //# sourceMappingURL=cache.d.ts.map