import { DynamoDBClient } from '@aws-sdk/client-dynamodb'; import { CompoundKey, SortKey } from '@paradoxical-io/types'; import { Monitoring } from '../../monitoring'; import { DynamoDao } from '../mapper'; import { DynamoTableName } from '../util'; export declare class PartitionedKeyCounterTableDao implements DynamoDao { partitionKey: T; sortKey: SortKey; count?: number; } export interface KeyCount { partitionKey: K; sortKey: SortKey; count?: number; } /** * An atomic key value counter for partitioned values */ export declare class PartitionedKeyValueCounter { private readonly dynamo; private readonly tableName; private readonly logger; constructor({ dynamo, tableName, monitoring, }: { dynamo?: DynamoDBClient; tableName: DynamoTableName; monitoring?: Monitoring; }); get

(id: CompoundKey): Promise; incr

(id: CompoundKey, by?: number): Promise; decr

(id: CompoundKey, by?: number): Promise; delete

(id: CompoundKey): Promise; private sortKey; private getRaw; private incrRaw; private deleteRaw; } //# sourceMappingURL=partitionedKeyValueCounter.d.ts.map