import STORAGE_TYPE from './storageType'; declare type TStorageValue = string | boolean | object; export interface IBrowserStorage { isSupported: boolean; exists: (props: { key: string; }) => boolean; save: (props: { key: string; value: TStorageValue; }) => void; read: (props: { key: string; defaultValue?: TStorageValue; }) => TStorageValue; remove: (props: { key: string; }) => void; readOrSave: (props: { key: string; valueToSaveIfNotThere: TStorageValue; }) => TStorageValue; } declare const _default: { create: typeof create; STORAGE_TYPE: typeof STORAGE_TYPE; }; export default _default; declare function create(storageType?: STORAGE_TYPE): IBrowserStorage;