import { CompoundKey } from '@paradoxical-io/types'; import { KeyValueList, KeyValueTable } from '../keyTable'; import { KeyCount, KeyValueCounter } from '../keyValueCounter'; import { PartitionedKeys } from '../partitionedKeys'; import { PartitionedKeyValueTable } from '../partitionedKeyTable'; import { PartitionedKeyValueCounter } from '../partitionedKeyValueCounter'; /** * An in memory kv table that uses a map. Used for testing and stubbing */ export declare class InMemoryKvTable extends KeyValueTable { private readonly store; constructor(); delete(id: string): Promise; get(id: string): Promise; getBatch(id: string[]): Promise; listAll(): Promise | undefined>; set(id: string, data: T): Promise; } export declare class InMemoryPartitionedKvTable extends PartitionedKeyValueTable { private kvTable; constructor(); clear

(partition: P): Promise; delete

(key: CompoundKey): Promise; exists(key: CompoundKey): Promise; get(key: CompoundKey): Promise; protected getRaw(key: CompoundKey): Promise<{ data: T; md5?: string; } | undefined>; listAll(partition: string): AsyncGenerator>; set(key: CompoundKey, data: T): Promise; setIfNotExists(key: CompoundKey, data: T): Promise; protected setIfMd5Matches(key: CompoundKey, data: T): Promise; private key; } /** * An in memory key count table that uses a map. Used for testing and stubbing */ export declare class InMemoryPartitionedKeyCountTable extends PartitionedKeyValueCounter { private readonly store; constructor(); delete

(id: CompoundKey): Promise; get

(id: CompoundKey): Promise; incr

(id: CompoundKey, by?: number): Promise; } export declare class InMemoryPartitionedKeys extends PartitionedKeys { constructor(); } /** * An in memory key count table that uses a map. Used for testing and stubbing */ export declare class InMemoryKeyCountTable extends KeyValueCounter { private readonly store; constructor(); delete(id: K): Promise; get(ids: K[]): Promise>>; incr(id: K, by?: number): Promise; } //# sourceMappingURL=inMemoryKvTable.d.ts.map