import BaseStore from './base'; /** Session store that persists data in the browser's `localStorage`. __`localStorage` is not available in Safari when running in private mode. In general it is better to use the {@linkplain AdaptiveStore} that automatically falls back to the {@linkplain CookieStore} when `localStorage` is not available.__ __This session store does not work with FastBoot. In order to use Ember Simple Auth with FastBoot, configure the {@linkplain CookieStore} as the application's session store.__ @class LocalStorageStore @extends BaseStore @public */ export default class LocalStorageStore extends BaseStore { /** The `localStorage` key the store persists data in. @memberof LocalStorageStore @property key @type String @default 'ember_simple_auth-session' @public */ key: string; _isFastBoot: boolean; _lastData: Record | null; constructor(owner: any); willDestroy(): void; /** Persists the `data` in the `localStorage`. @memberof LocalStorageStore @method persist @param {Object} data The data to persist @return {Promise} A promise that resolves when the data has successfully been persisted and rejects otherwise. @public */ persist(data: Record): Promise; /** Returns all data currently stored in the `localStorage` as a plain object. @memberof LocalStorageStore @method restore @return {Promise} A promise that resolves with the data currently persisted in the store when the data has been restored successfully and rejects otherwise. @public */ restore(): Promise; /** Clears the store by deleting the {@linkplain LocalStorageStore.key} from `localStorage`. @memberof LocalStorageStore @method clear @return {Promise} A promise that resolves when the store has been cleared successfully and rejects otherwise. @public */ clear(): Promise; _handleStorageEvent(e: StorageEvent): void; setRedirectTarget(url: string): void; getRedirectTarget(): string | null; clearRedirectTarget(): void; }