import { CachedMessage, InAppMessage } from './types'; /** * Detect amount of local storage remaining (quota) and used (usage). * If usageDetails exist (not supported in Safari), use this instead of usage. */ export declare const determineRemainingStorageQuota: () => Promise; /** * Deletes cached messages not present in latest getMessages fetch. * @param cachedMessages * @param fetchedMessages */ export declare const getCachedMessagesToDelete: (cachedMessages: CachedMessage[], fetchedMessages: Partial[]) => string[]; /** * Adds messages to cache only if they fit within the quota, starting with * oldest messages since newer messages can still be easily retrieved via * new requests while passing in latestCachedMessageId param. * @param messages * @param quota */ export declare const addNewMessagesToCache: (messages: { messageId: string; message: InAppMessage; }[]) => Promise;