import { KeyValuePair, Tuple, WriteOps } from "../../storage/types"; import { TupleDatabaseApi } from "../sync/types"; import { FilterTupleValuePairByPrefix, RemoveTupleValuePairPrefix, TuplePrefix, ValueForTuple } from "../typeHelpers"; import { ScanArgs, TxId, Unsubscribe } from "../types"; import { AsyncCallback, AsyncTupleDatabaseApi, AsyncTupleDatabaseClientApi, AsyncTupleRootTransactionApi, AsyncTupleTransactionApi } from "./asyncTypes"; export declare class AsyncTupleDatabaseClient implements AsyncTupleDatabaseClientApi { private db; subspacePrefix: Tuple; constructor(db: AsyncTupleDatabaseApi | TupleDatabaseApi, subspacePrefix?: Tuple); scan>(args?: ScanArgs, txId?: TxId): Promise[]>; subscribe>(args: ScanArgs, callback: AsyncCallback>): Promise; commit(writes: WriteOps, txId?: TxId): Promise; cancel(txId: string): Promise; get(tuple: T, txId?: TxId): Promise | undefined>; exists(tuple: T, txId?: TxId): Promise; subspace

>(prefix: P): AsyncTupleDatabaseClient>; transact(txId?: TxId, writes?: WriteOps): AsyncTupleRootTransactionApi; close(): Promise; } export declare class AsyncTupleRootTransaction implements AsyncTupleRootTransactionApi { private db; subspacePrefix: Tuple; id: TxId; constructor(db: AsyncTupleDatabaseApi | TupleDatabaseApi, subspacePrefix: Tuple, id: TxId, writes?: WriteOps); committed: boolean; canceled: boolean; writes: Required>; private checkActive; scan>(args?: ScanArgs): Promise[]>; get(tuple: T): Promise | undefined>; exists(tuple: T): Promise; set(tuple: T["key"], value: T["value"]): AsyncTupleRootTransactionApi; remove(tuple: S["key"]): AsyncTupleRootTransactionApi; write(writes: WriteOps): AsyncTupleRootTransactionApi; commit(): Promise; cancel(): Promise; subspace

>(prefix: P): AsyncTupleTransactionApi>; } export declare class AsyncTupleSubspaceTransaction implements AsyncTupleTransactionApi { private tx; subspacePrefix: Tuple; constructor(tx: AsyncTupleTransactionApi, subspacePrefix: Tuple); scan>(args?: ScanArgs): Promise[]>; get(tuple: T): Promise | undefined>; exists(tuple: T): Promise; set(tuple: T["key"], value: T["value"]): AsyncTupleTransactionApi; remove(tuple: S["key"]): AsyncTupleTransactionApi; write(writes: WriteOps): AsyncTupleTransactionApi; subspace

>(prefix: P): AsyncTupleTransactionApi>; } //# sourceMappingURL=../../../src/database/async/AsyncTupleDatabaseClient.d.ts.map