import { Platform } from '@launchdarkly/js-sdk-common'; /** * This function will retrieve a previously generated key for the given {@link storageKey} if it * exists or generate and store one on the fly if it does not already exist. * @param storageKey keyed storage location where the generated key should live. See {@link namespaceForGeneratedContextKey} * for related exmaples of generating a storage key and usage. * @param platform crypto and storage implementations for necessary operations * @param legacyStorageKey optional legacy storage key to migrate from. If the key is not found * under {@link storageKey} but exists under this legacy key, it will be migrated to the new * location and the legacy key will be cleared. * @returns the generated key */ export declare const getOrGenerateKey: (storageKey: string, { crypto, storage }: Platform, legacyStorageKey?: string) => Promise; //# sourceMappingURL=getOrGenerateKey.d.ts.map