import * as Long from 'long'; import { ReplicatedData } from '.'; /** * A Replicated Counter data type. * * A counter that can be incremented and decremented. * * @remarks * * The value is stored as a 64-bit signed long, hence values over `2^63 - 1` and less than `2^63` * can't be represented. * * @public */ export declare class ReplicatedCounter implements ReplicatedData { private currentValue; private delta; /** * The value as a long. */ get longValue(): Long.Long; /** * The value as a number. * * @remarks * * Note that once the value exceeds `2^53`, this will not be an accurate representation of the * value. If you expect it to exceed `2^53`, {@link longValue} should be used * instead. */ get value(): number; /** * Increment the counter by the given number. * * @param increment - The amount to increment the counter by. If negative, it will be decremented instead * @returns This counter */ increment: (increment: Long.Long | number) => ReplicatedCounter; /** * Decrement the counter by the given number. * * @param decrement - The amount to decrement the counter by. If negative, it will be incremented instead * @returns This counter */ decrement: (decrement: Long.Long | number) => ReplicatedCounter; toString: () => string; }