import { AssignmentCache, AssignmentCacheEntry } from '@eppo/js-client-sdk-common'; /** An {@link AssignmentCache} that can write (set) multiple entries at once (in bulk). */ export declare type BulkWriteAssignmentCache = AssignmentCache & { /** Sets all entries in the cache to the provided array of [key, value] pairs. */ setEntries(entries: [string, string][]): void; }; /** An {@link AssignmentCache} that can read (get) all entries at once. */ export declare type BulkReadAssignmentCache = AssignmentCache & { /** Returns all entries in the cache as an array of [key, value] pairs. */ getEntries(): Promise<[string, string][]>; }; /** * An {@link AssignmentCache} implementation that, upon `init`, reads from a persistent and async {@link BulkReadAssignmentCache} * and writes to a synchronous {@link BulkWriteAssignmentCache} for serving the cache. * */ export default class HybridAssignmentCache implements AssignmentCache { private readonly servingStore; private readonly persistentStore; constructor(servingStore: BulkWriteAssignmentCache, persistentStore: BulkReadAssignmentCache); init(): Promise; set(key: AssignmentCacheEntry): void; has(key: AssignmentCacheEntry): boolean; } //# sourceMappingURL=hybrid-assignment-cache.d.ts.map