import type { KVS, KVSOptions, StoreNames, StoreValue } from "@kvs/types"; import { JsonValue } from "./JSONValue"; export type KVSStorageKey = string; export declare const getItem: (storage: Storage, tableName: string, key: StoreNames) => any; export declare const hasItem: (storage: Storage, tableName: string, key: StoreNames) => boolean; export declare const setItem: (storage: Storage, tableName: string, key: StoreNames, value: StoreValue> | undefined) => boolean | void; export declare const clearItem: (storage: Storage, tableName: string, kvsVersionKey: string, options: { force: boolean; }) => void; export declare const deleteItem: (storage: Storage, tableName: string, key: StoreNames) => boolean; export declare function createIterator(storage: Storage, tableName: string, kvsVersionKey: string): Iterator<[StoreNames, StoreValue>]>; export type StorageSchema = { [index: string]: JsonValue; }; export type KvsStorage = KVS; export type KvsStorageOptions = KVSOptions & { kvsVersionKey?: string; storage: Storage; }; export declare const kvsStorage: (options: KvsStorageOptions) => Promise>;