import { MutationToken } from './mutationstate' ; import { Cas } from './utilities' ; category export class GetResult { /**
     * The content of the document.
     */ content : any ; /**
     * The CAS of the document.
     */ cas : Cas ; see GetOptions . withExpiry expiryTime ? : number ; internal constructor ( data ) { this . content = data . content ; this . cas = data . cas ; this . expiryTime = data . expiryTime ; } deprecated Use  GetResult . content instead.
      get value ( ) : any { return this . content ; } set value ( v ) { this . content = v ; } deprecated Use  GetResult . expiryTime instead.
      get expiry ( ) : number | undefined { return this . expiryTime ; } } category export class ExistsResult { /**
     * Indicates whether the document existed or not.
     */ exists : boolean ; /**
     * The CAS of the document.
     */ cas : Cas ; internal constructor ( data ) { this . exists = data . exists ; this . cas = data . cas ; } } category export class MutationResult { /**
     * The updated CAS for the document.
     */ cas : Cas ; /**
     * The token representing the mutation performed.
     */ token ? : MutationToken ; internal constructor ( data ) { this . cas = data . cas ; this . token = data . token ; } } category export class GetReplicaResult { /**
     * The content of the document, as it existed on the replica.
     */ content : any ; /**
     * The cas of the document, as it is known by the replica.
     */ cas : Cas ; /**
     * Indicates whether this result came from a replica or the primary.
     */ isReplica : boolean ; internal constructor ( data ) { this . content = data . content ; this . cas = data . cas ; this . isReplica = data . isReplica ; } deprecated Use  GetReplicaResult . content instead.
      get value ( ) : any { return this . content ; } set value ( v ) { this . content = v ; } } category export class LookupInResultEntry { /**
     * The error, if any, which occured when attempting to perform this sub-operation.
     */ error : Error | null ; /**
     * The value returned by the sub-operation.
     */ value ? : any ; internal constructor ( data ) { this . error = data . error ; this . value = data . value ; } } category export class LookupInResult { /**
     * A list of result entries for each sub-operation performed.
     */ content : LookupInResultEntry [ ] ; /**
     * The cas of the document.
     */ cas : Cas ; internal constructor ( data ) { this . content = data . content ; this . cas = data . cas ; } deprecated Use  LookupInResult . content instead.
      get results ( ) : LookupInResultEntry [ ] { return this . content ; } set results ( v ) { this . content = v ; } } category export class MutateInResultEntry { /**
     * The resulting value after the completion of the sub-operation.  This namely
     * returned in the case of a counter operation (increment/decrement) and is not
     * included for general operations.
     */ value : any | undefined ; internal constructor ( data ) { this . value = data . value ; } } category export class MutateInResult { /**
     * A list of result entries for each sub-operation performed.
     */ content : MutateInResultEntry [ ] ; /**
     * The updated CAS for the document.
     */ cas : Cas ; internal constructor ( data ) { this . content = data . content ; this . cas = data . cas ; } } category export class CounterResult { /**
     * The new value of the document after the operation completed.
     */ value : number ; /**
     * The updated CAS for the document.
     */ cas : Cas ; /**
     * The token representing the mutation performed.
     */ token ? : MutationToken ; internal constructor ( data ) { this . value = data . value ; this . cas = data . cas ; this . token = data . token ; } }