/**
 * A cache of provided by the user values to the input fields.
 * This is used to restore data when the user switches between different operations.
 */
export declare const globalValues: Map<string, unknown>;
/**
 * A cache for "local" values cached per instance of the component.
 */
export declare const localValues: WeakMap<HTMLElement, Map<string, unknown>>;
/**
 * @param element
 * @param globalCache Whether to use the global cache.
 */
export declare function getStore(element: HTMLElement, globalCache: boolean): Map<string, unknown>;
/**
 * @param element
 * @param key The key to use
 * @param globalCache Whether to use the global cache.
 */
export declare function get(element: HTMLElement, key: string, globalCache: boolean): unknown;
/**
 * @param element
 * @param key The key to use
 * @param value The value to store
 * @param globalCache Whether to use the global cache.
 * @param isArray Whether the value is an array.
 * @param index The array index.
 */
export declare function set(element: HTMLElement, key: string, value: unknown, globalCache: boolean, isArray?: boolean, index?: number): void;
/**
 * @param element
 * @param key The key to use
 * @param globalCache Whether to use the global cache.
 */
export declare function has(element: HTMLElement, key: string, globalCache: boolean): boolean;
export declare function registerLocal(element: HTMLElement): void;
export declare function unregisterLocal(element: HTMLElement): void;
/**
 * @param element
 * @param key The key to use
 * @param globalCache Whether to use the global cache.
 * @param index When set to a number it expects the value to be array and removes an item on the specified index.
 */
export declare function remove(element: HTMLElement, key: string, globalCache: boolean, index?: number): void;
//# sourceMappingURL=InputCache.d.ts.map