import { getNestedValue, setNestedValue } from './impl'; export { getNestedValue, type KeyValueStore, KVStore, setNestedValue }; type KeyValueStore = { getBroadcastChannel: () => BroadcastChannel | undefined; setBroadcastChannel: (broadcastChannel: BroadcastChannel) => void; get: (key: string) => unknown; set: (key: string, value: unknown) => void; delete: (key: string) => void; reset: () => void; readonly size: number; }; type CreateKVStoreOptions = { inMemStorage: Map; broadcastChannel?: BroadcastChannel; memoryOnly: boolean; }; declare class KVStore implements KeyValueStore { private inMemStorage; private broadcastChannel?; private memoryOnly; constructor(options: CreateKVStoreOptions); getBroadcastChannel(): BroadcastChannel | undefined; setBroadcastChannel(broadcastChannel: BroadcastChannel): void; get(key: string): unknown; set(key: string, value: unknown): void; delete(key: string): void; reset(): void; get size(): number; }