import { EitherAsync } from 'purify-ts/EitherAsync'; import { Operator } from 'modules/filterConfiguration/operators'; export interface SimplifiedIndexConfig { simple?: Array; array?: Array; } export declare const createStore: (storeName: string) => (simplifiedIndexConfig: SimplifiedIndexConfig) => (keyPath: keyof T) => EitherAsync; export declare const createStoreIfNotExist: (storeName: string) => (simplifiedIndexConfig: SimplifiedIndexConfig) => (keyPath: keyof T) => EitherAsync; export declare const deleteStore: (storeName: string) => EitherAsync; export declare const deleteStoreIfExist: (storeName: string) => EitherAsync; export declare const deleteDatabase: () => EitherAsync; export declare const addDocumentsToStore: (storeName: string) => (data: T[]) => EitherAsync; export declare const iterateOverStore: (storeName: string) => (callback: (primaryKey: ItemKey, item: T) => void) => EitherAsync; export declare const getPrimaryKeysMatchingOperator: (storeName: string) => (indexName: string) => (operator: Operator) => (operand: unknown) => EitherAsync; export declare const getAllPrimaryKeysForIndex: (storeName: string) => (indexName: string) => (reverseDirection: boolean) => EitherAsync; export declare const getAllUniqueKeysForIndex: (storeName: string) => (indexName: string) => EitherAsync; export declare const getDocuments: (storeName: string) => (documentIds: IDBValidKey[]) => EitherAsync; export declare const getNumberOfDocumentsInStore: (storeName: string) => EitherAsync; export declare const doesStoreExist: (storeName: string) => EitherAsync; export declare const getKeyRangeMatchingOperator: (operator: Operator) => (value: any) => IDBKeyRange;