import { Collection } from './collection' ; import { CounterResult , MutationResult } from './crudoptypes' ; import { RequestSpan } from './tracing' ; import { NodeCallback } from './utilities' ; category export interface IncrementOptions { /**
     * The initial value to use for the document if it does not already exist.
     * Not specifying this value indicates the operation should fail if the
     * document does not exist.
     */ initial ? : number ; /**
     * The expiry time that should be set for the document, expressed in seconds.
     */ expiry ? : number ; /**
     * The parent tracing span that this operation will be part of.
     */ parentSpan ? : RequestSpan ; /**
     * The timeout for this operation, represented in milliseconds.
     */ timeout ? : number ; } category export interface DecrementOptions { /**
     * The initial value to use for the document if it does not already exist.
     * Not specifying this value indicates the operation should fail if the
     * document does not exist.
     */ initial ? : number ; /**
     * The expiry time that should be set for the document, expressed in seconds.
     */ expiry ? : number ; /**
     * The parent tracing span that this operation will be part of.
     */ parentSpan ? : RequestSpan ; /**
     * The timeout for this operation, represented in milliseconds.
     */ timeout ? : number ; } category export interface AppendOptions { /**
     * The parent tracing span that this operation will be part of.
     */ parentSpan ? : RequestSpan ; /**
     * The timeout for this operation, represented in milliseconds.
     */ timeout ? : number ; } category export interface PrependOptions { /**
     * The parent tracing span that this operation will be part of.
     */ parentSpan ? : RequestSpan ; /**
     * The timeout for this operation, represented in milliseconds.
     */ timeout ? : number ; } category export class BinaryCollection { private _coll : Collection ; internal constructor ( parent ) { this . _coll = parent ; } param key param delta param options param callback increment ( key , delta , options ? , callback ? ) { return this . _coll . _binaryIncrement ( key , delta , options , callback ) ; } param key param delta param options param callback decrement ( key , delta , options ? , callback ? ) { return this . _coll . _binaryDecrement ( key , delta , options , callback ) ; } param key param value param options param callback append ( key , value , options ? , callback ? ) { return this . _coll . _binaryAppend ( key , value , options , callback ) ; } param key param value param options param callback prepend ( key , value , options ? , callback ? ) { return this . _coll . _binaryPrepend ( key , value , options , callback ) ; } }