var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
import { StateService } from "./state_service.js";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
class StateServiceClient {
  constructor(_transport) {
    this._transport = _transport;
    __publicField(this, "typeName", StateService.typeName);
    __publicField(this, "methods", StateService.methods);
    __publicField(this, "options", StateService.options);
  }
  /**
   * Returns a stream of the snapshot of the active contracts and incomplete (un)assignments at a ledger offset.
   * If there are no active contracts, the stream returns a single response message with the offset at which the snapshot has been taken.
   * Clients SHOULD use the offset in the last GetActiveContractsResponse message to continue streaming transactions with the update service.
   * Clients SHOULD NOT assume that the set of active contracts they receive reflects the state at the ledger end.
   *
   * @generated from protobuf rpc: GetActiveContracts
   */
  getActiveContracts(input, options) {
    const method = this.methods[0], opt = this._transport.mergeOptions(options);
    return stackIntercept("serverStreaming", this._transport, method, opt, input);
  }
  /**
   * Get the list of connected synchronizers at the time of the query.
   *
   * @generated from protobuf rpc: GetConnectedSynchronizers
   */
  getConnectedSynchronizers(input, options) {
    const method = this.methods[1], opt = this._transport.mergeOptions(options);
    return stackIntercept("unary", this._transport, method, opt, input);
  }
  /**
   * Get the current ledger end.
   * Subscriptions started with the returned offset will serve events after this RPC was called.
   *
   * @generated from protobuf rpc: GetLedgerEnd
   */
  getLedgerEnd(input, options) {
    const method = this.methods[2], opt = this._transport.mergeOptions(options);
    return stackIntercept(
      "unary",
      this._transport,
      method,
      opt,
      input
    );
  }
  /**
   * Get the latest successfully pruned ledger offsets
   *
   * @generated from protobuf rpc: GetLatestPrunedOffsets
   */
  getLatestPrunedOffsets(input, options) {
    const method = this.methods[3], opt = this._transport.mergeOptions(options);
    return stackIntercept("unary", this._transport, method, opt, input);
  }
}
export {
  StateServiceClient
};
//# sourceMappingURL=state_service.client.js.map