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 { CommandService } from "./command_service.js";
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
class CommandServiceClient {
  constructor(_transport) {
    this._transport = _transport;
    __publicField(this, "typeName", CommandService.typeName);
    __publicField(this, "methods", CommandService.methods);
    __publicField(this, "options", CommandService.options);
  }
  /**
   * Submits a single composite command and waits for its result.
   * Propagates the gRPC error of failed submissions including Daml interpretation errors.
   *
   * @generated from protobuf rpc: SubmitAndWait
   */
  submitAndWait(input, options) {
    const method = this.methods[0], opt = this._transport.mergeOptions(options);
    return stackIntercept(
      "unary",
      this._transport,
      method,
      opt,
      input
    );
  }
  /**
   * Submits a single composite command, waits for its result, and returns the transaction.
   * Propagates the gRPC error of failed submissions including Daml interpretation errors.
   *
   * @generated from protobuf rpc: SubmitAndWaitForTransaction
   */
  submitAndWaitForTransaction(input, options) {
    const method = this.methods[1], opt = this._transport.mergeOptions(options);
    return stackIntercept("unary", this._transport, method, opt, input);
  }
  /**
   * Provided for backwards compatibility, it will be removed in the Canton version 3.4.0.
   * Submits a single composite command, waits for its result, and returns the transaction tree.
   * Propagates the gRPC error of failed submissions including Daml interpretation errors.
   *
   * @deprecated
   * @generated from protobuf rpc: SubmitAndWaitForTransactionTree
   */
  submitAndWaitForTransactionTree(input, options) {
    const method = this.methods[2], opt = this._transport.mergeOptions(options);
    return stackIntercept("unary", this._transport, method, opt, input);
  }
  /**
   * Submits a single composite reassignment command, waits for its result, and returns the reassignment.
   * Propagates the gRPC error of failed submission.
   *
   * @generated from protobuf rpc: SubmitAndWaitForReassignment
   */
  submitAndWaitForReassignment(input, options) {
    const method = this.methods[3], opt = this._transport.mergeOptions(options);
    return stackIntercept("unary", this._transport, method, opt, input);
  }
}
export {
  CommandServiceClient
};
//# sourceMappingURL=command_service.client.js.map