import { PostHogCustomStorage } from './types'; type PostHogStorageContents = { [key: string]: any; }; export declare class PostHogRNStorage { memoryCache: PostHogStorageContents; storage: PostHogCustomStorage; preloadPromise: Promise | undefined; private _pendingPromises; constructor(storage: PostHogCustomStorage); /** * Waits for all pending storage persist operations to complete. * This ensures data has been written to the underlying storage before proceeding. * This method never throws - errors are logged but swallowed. */ waitForPersist(): Promise; persist(): void; getItem(key: string): any | null | undefined; setItem(key: string, value: any): void; removeItem(key: string): void; clear(): void; getAllKeys(): readonly string[]; populateMemoryCache(res: string | null): void; } export declare class PostHogRNSyncMemoryStorage extends PostHogRNStorage { constructor(); } export {};