/**
 * Retrieve an item from localStorage, previously saved by `setPersistentItem`.
 * @param {string} name The storage key name, often a component name
 * @param {object} [options] - an optional options object
 * @param {boolean} [options.global] - does not add url to the key when true
 * @returns {any | undefined}
 */
export declare function getPersistentItem(name: any, options?: {
    global?: boolean;
}): any;

/**
 ***************** DEPRECATED *****************
 */
export declare function getPersistentItem__deprecated(itemKey: string, name: any): any;

export declare const persistentStorage: {
    setItem: typeof setPersistentItem;
    getItem: typeof getPersistentItem;
    removeItem: typeof removePersistentItem;
};

/**
 * Remove an item from localStorage, previously saved by `setPersistentItem`.
 * @param {string} name The storage key name, often a component name
 * @param {object} [options] - an optional options object
 * @param {boolean} [options.global] - does not add url to the key when true
 */
export declare function removePersistentItem(name: any, options?: {
    global?: boolean;
}): void;

export declare function removePersistentItem__deprecated(itemKey: any, name: any): void;

/**
 * Persist an item to localStorage, unique to each url pathname unless [options.global] is set to true
 *
 * If global is set to false (the default):
 *   name: 'foo'
 *   data: { a: 'a' }
 *
 *   localStorage key: 'll-foo-/c/the-leaf-shop/customers/'
 *   localStorage value: { a: 'a' }
 *
 * If global is set to true:
 *   name: 'bar'
 *   data: { b: 'b' }
 *
 *   localStorage key: 'll-bar'
 *   localStorage value: { b: 'b' }
 *
 * @param {string} name - the storage key name, often a component name
 * @param {object} data - the data to persist
 * @param {object} [options] - an optional options object
 * @param {boolean} [options.global] - does not add url to the key when true
 */
export declare function setPersistentItem(name: any, data: any, options?: {
    global?: boolean;
}): void;

export { }
