import { CppMutationToken } from './binding.js'; /** * Represents the mutation token returned by the server. * * @see MutationState */ export interface MutationToken { /** * Generates a string representation of this mutation token. */ toString(): string; /** * Generates a JSON representation of this mutation token. */ toJSON(): any; } /** * Aggregates a number of {@link MutationToken}'s which have been returned by mutation * operations, which can then be used when performing queries. * This guarantees that the query includes the specified set of mutations without incurring the wait * associated with request_plus level consistency. */ export declare class MutationState { /** * @internal */ readonly data: { [bucketName: string]: { [vbId: number]: CppMutationToken; }; }; private tokenCount; get length(): number; constructor(...tokens: MutationToken[]); /** * Adds a set of tokens to this state. * * @param tokens The tokens to add. */ add(...tokens: MutationToken[]): void; private _addOne; /** * @internal */ toJSON(): { [bucketName: string]: { [vbId: number]: CppMutationToken; }; }; getTokens(): CppMutationToken[]; toString(): string; }