import { DeleteKeyRange } from './delete'; import { ObjectStoreKeyValueRecord } from './save'; import { CountOptions } from './count'; import { ObjectStoreRecord, GetOptions } from './get'; export interface Connection { deleteFromStore(storeName: string, key: DeleteKeyRange): Promise; deleteFromStores(arg: { [storeName: string]: DeleteKeyRange; }): Promise; clearStore(storeName: string): Promise; clearStores(storeNames: string[]): Promise; insertIntoOneStore(storeName: string, records: ObjectStoreKeyValueRecord[]): Promise; insertIntoMultiple(arg: { [storeName: string]: ObjectStoreKeyValueRecord[]; }): Promise<{ [storeName: string]: IDBValidKey[]; }>; upsertIntoOneStore(storeName: string, records: ObjectStoreKeyValueRecord[]): Promise; upsertIntoMultiple(arg: { [storeName: string]: ObjectStoreKeyValueRecord[]; }): Promise<{ [storeName: string]: IDBValidKey[]; }>; countOneStore(storeName: string, options?: CountOptions): Promise; countMultipleStores(arg: { [storeName: string]: CountOptions; }): Promise<{ [storeName: string]: number; }>; getOneStore(storeName: string, options?: GetOptions): Promise; getMultipleStores(arg: { [storeName: string]: GetOptions; }): Promise<{ [storeName: string]: ObjectStoreRecord[]; }>; close(): void; }