text: import { __assign, __extends } from "tslib";
  import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig";
  import { resolveEndpointsConfig, resolveRegionConfig } from "@aws-sdk/config-resolver";
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
  import { getHostHeaderPlugin, resolveHostHeaderConfig } from "@aws-sdk/middleware-host-header";
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
  import { getAwsAuthPlugin, resolveAwsAuthConfig } from "@aws-sdk/middleware-signing";
  import { getUserAgentPlugin, resolveUserAgentConfig } from "@aws-sdk/middleware-user-agent";
  import { Client as __Client } from "@aws-sdk/smithy-client";
  /**
   * <p>Amazon Textract detects and analyzes text in documents and converts it
   *          into machine-readable text. This is the API reference documentation for
   *          Amazon Textract.</p>
   */
  var TextractClient = /** @class */ (function (_super) {
      __extends(TextractClient, _super);
      function TextractClient(configuration) {
          var _this = this;
          var _config_0 = __assign(__assign({}, __ClientDefaultValues), configuration);
          var _config_1 = resolveRegionConfig(_config_0);
          var _config_2 = resolveEndpointsConfig(_config_1);
          var _config_3 = resolveAwsAuthConfig(_config_2);
          var _config_4 = resolveRetryConfig(_config_3);
          var _config_5 = resolveUserAgentConfig(_config_4);
          var _config_6 = resolveHostHeaderConfig(_config_5);
          _this = _super.call(this, _config_6) || this;
          _this.config = _config_6;
          _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
          _this.middlewareStack.use(getRetryPlugin(_this.config));
          _this.middlewareStack.use(getUserAgentPlugin(_this.config));
          _this.middlewareStack.use(getContentLengthPlugin(_this.config));
          _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
          return _this;
      }
      TextractClient.prototype.destroy = function () { };
      return TextractClient;
  }(__Client));
  export { TextractClient };
  //# sourceMappingURL=TextractClient.js.map