@aws-sdk/lib-storage 3.899.0 → 3.901.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -32,11 +32,13 @@ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
32
32
  var import_smithy_client = require("@smithy/smithy-client");
33
33
  var import_events = require("events");
34
34
 
35
- // src/bytelength.ts
35
+ // src/byteLength.ts
36
36
  var import_buffer = require("buffer");
37
37
  var import_runtimeConfig = require("././runtimeConfig");
38
38
  var byteLength = /* @__PURE__ */ __name((input) => {
39
- if (input === null || input === void 0) return 0;
39
+ if (input == null) {
40
+ return 0;
41
+ }
40
42
  if (typeof input === "string") {
41
43
  return import_buffer.Buffer.byteLength(input);
42
44
  }
@@ -46,9 +48,11 @@ var byteLength = /* @__PURE__ */ __name((input) => {
46
48
  return input.length;
47
49
  } else if (typeof input.size === "number") {
48
50
  return input.size;
51
+ } else if (typeof input.start === "number" && typeof input.end === "number") {
52
+ return input.end + 1 - input.start;
49
53
  } else if (typeof input.path === "string") {
50
54
  try {
51
- return import_runtimeConfig.ClientDefaultValues.lstatSync(input.path).size;
55
+ return import_runtimeConfig.runtimeConfig.lstatSync(input.path).size;
52
56
  } catch (error) {
53
57
  return void 0;
54
58
  }
@@ -56,6 +60,37 @@ var byteLength = /* @__PURE__ */ __name((input) => {
56
60
  return void 0;
57
61
  }, "byteLength");
58
62
 
63
+ // src/byteLengthSource.ts
64
+ var import_runtimeConfig2 = require("././runtimeConfig");
65
+ var byteLengthSource = /* @__PURE__ */ __name((input, override) => {
66
+ if (override != null) {
67
+ return "the ContentLength property of the params set by the caller" /* CONTENT_LENGTH */;
68
+ }
69
+ if (input == null) {
70
+ return "a null or undefined Body" /* EMPTY_INPUT */;
71
+ }
72
+ if (typeof input === "string") {
73
+ return "the encoded byte length of the Body string" /* STRING_LENGTH */;
74
+ }
75
+ if (typeof input.byteLength === "number") {
76
+ return "the byteLength of a typed byte array such as Uint8Array" /* TYPED_ARRAY */;
77
+ } else if (typeof input.length === "number") {
78
+ return "the value of Body.length" /* LENGTH */;
79
+ } else if (typeof input.size === "number") {
80
+ return "the value of Body.size" /* SIZE */;
81
+ } else if (typeof input.start === "number" && typeof input.end === "number") {
82
+ return "the numeric difference between Body.start and Body.end" /* START_END_DIFF */;
83
+ } else if (typeof input.path === "string") {
84
+ try {
85
+ import_runtimeConfig2.runtimeConfig.lstatSync(input.path).size;
86
+ return "the size of the file given by Body.path on disk as reported by lstatSync" /* LSTAT */;
87
+ } catch (error) {
88
+ return void 0;
89
+ }
90
+ }
91
+ return void 0;
92
+ }, "byteLengthSource");
93
+
59
94
  // src/chunker.ts
60
95
 
61
96
  var import_stream = require("stream");
@@ -191,6 +226,7 @@ var Upload = class _Upload extends import_events.EventEmitter {
191
226
  params;
192
227
  // used for reporting progress.
193
228
  totalBytes;
229
+ totalBytesSource;
194
230
  bytesUploadedSoFar;
195
231
  // used in the upload.
196
232
  abortController;
@@ -218,11 +254,14 @@ var Upload = class _Upload extends import_events.EventEmitter {
218
254
  if (!this.params) {
219
255
  throw new Error(`InputError: Upload requires params to be passed to upload.`);
220
256
  }
221
- this.totalBytes = byteLength(this.params.Body);
257
+ this.totalBytes = this.params.ContentLength ?? byteLength(this.params.Body);
258
+ this.totalBytesSource = byteLengthSource(this.params.Body, this.params.ContentLength);
222
259
  this.bytesUploadedSoFar = 0;
223
260
  this.abortController = options.abortController ?? new import_abort_controller.AbortController();
224
261
  this.partSize = options.partSize || Math.max(_Upload.MIN_PART_SIZE, Math.floor((this.totalBytes || 0) / this.MAX_PARTS));
225
- this.expectedPartsCount = this.totalBytes !== void 0 ? Math.ceil(this.totalBytes / this.partSize) : void 0;
262
+ if (this.totalBytes !== void 0) {
263
+ this.expectedPartsCount = Math.ceil(this.totalBytes / this.partSize);
264
+ }
226
265
  this.__validateInput();
227
266
  }
228
267
  async abort() {
@@ -432,9 +471,14 @@ var Upload = class _Upload extends import_events.EventEmitter {
432
471
  }
433
472
  let result;
434
473
  if (this.isMultiPart) {
435
- const { expectedPartsCount, uploadedParts } = this;
436
- if (expectedPartsCount !== void 0 && uploadedParts.length !== expectedPartsCount) {
437
- throw new Error(`Expected ${expectedPartsCount} part(s) but uploaded ${uploadedParts.length} part(s).`);
474
+ const { expectedPartsCount, uploadedParts, totalBytes, totalBytesSource } = this;
475
+ if (totalBytes !== void 0 && expectedPartsCount !== void 0 && uploadedParts.length !== expectedPartsCount) {
476
+ throw new Error(`Expected ${expectedPartsCount} part(s) but uploaded ${uploadedParts.length} part(s).
477
+ The expected part count is based on the byte-count of the input.params.Body,
478
+ which was read from ${totalBytesSource} and is ${totalBytes}.
479
+ If this is not correct, provide an override value by setting a number
480
+ to input.params.ContentLength in bytes.
481
+ `);
438
482
  }
439
483
  this.uploadedParts.sort((a, b) => a.PartNumber - b.PartNumber);
440
484
  const uploadCompleteParams = {
@@ -512,7 +556,7 @@ var Upload = class _Upload extends import_events.EventEmitter {
512
556
  }
513
557
  if (this.partSize < _Upload.MIN_PART_SIZE) {
514
558
  throw new Error(
515
- `EntityTooSmall: Your proposed upload partsize [${this.partSize}] is smaller than the minimum allowed size [${_Upload.MIN_PART_SIZE}] (5MB)`
559
+ `EntityTooSmall: Your proposed upload part size [${this.partSize}] is smaller than the minimum allowed size [${_Upload.MIN_PART_SIZE}] (5MB)`
516
560
  );
517
561
  }
518
562
  if (this.queueSize < 1) {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientDefaultValues = void 0;
3
+ exports.runtimeConfig = void 0;
4
4
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
5
- exports.ClientDefaultValues = {
6
- ...runtimeConfig_shared_1.ClientSharedValues,
5
+ exports.runtimeConfig = {
6
+ ...runtimeConfig_shared_1.runtimeConfigShared,
7
7
  runtime: "browser",
8
8
  };
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientDefaultValues = void 0;
3
+ exports.runtimeConfig = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
6
- exports.ClientDefaultValues = {
7
- ...runtimeConfig_shared_1.ClientSharedValues,
6
+ exports.runtimeConfig = {
7
+ ...runtimeConfig_shared_1.runtimeConfigShared,
8
8
  runtime: "node",
9
9
  lstatSync: fs_1.lstatSync,
10
10
  };
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientDefaultValues = void 0;
3
+ exports.runtimeConfig = void 0;
4
4
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
5
- exports.ClientDefaultValues = {
6
- ...runtimeConfig_browser_1.ClientDefaultValues,
5
+ exports.runtimeConfig = {
6
+ ...runtimeConfig_browser_1.runtimeConfig,
7
7
  runtime: "react-native",
8
8
  };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ClientSharedValues = void 0;
4
- exports.ClientSharedValues = {
3
+ exports.runtimeConfigShared = void 0;
4
+ exports.runtimeConfigShared = {
5
5
  lstatSync: () => { },
6
6
  };
package/dist-es/Upload.js CHANGED
@@ -3,7 +3,8 @@ import { AbortController } from "@smithy/abort-controller";
3
3
  import { getEndpointFromInstructions, toEndpointV1, } from "@smithy/middleware-endpoint";
4
4
  import { extendedEncodeURIComponent } from "@smithy/smithy-client";
5
5
  import { EventEmitter } from "events";
6
- import { byteLength } from "./bytelength";
6
+ import { byteLength } from "./byteLength";
7
+ import { byteLengthSource } from "./byteLengthSource";
7
8
  import { getChunk } from "./chunker";
8
9
  export class Upload extends EventEmitter {
9
10
  static MIN_PART_SIZE = 1024 * 1024 * 5;
@@ -15,6 +16,7 @@ export class Upload extends EventEmitter {
15
16
  client;
16
17
  params;
17
18
  totalBytes;
19
+ totalBytesSource;
18
20
  bytesUploadedSoFar;
19
21
  abortController;
20
22
  concurrentUploaders = [];
@@ -38,12 +40,15 @@ export class Upload extends EventEmitter {
38
40
  if (!this.params) {
39
41
  throw new Error(`InputError: Upload requires params to be passed to upload.`);
40
42
  }
41
- this.totalBytes = byteLength(this.params.Body);
43
+ this.totalBytes = this.params.ContentLength ?? byteLength(this.params.Body);
44
+ this.totalBytesSource = byteLengthSource(this.params.Body, this.params.ContentLength);
42
45
  this.bytesUploadedSoFar = 0;
43
46
  this.abortController = options.abortController ?? new AbortController();
44
47
  this.partSize =
45
48
  options.partSize || Math.max(Upload.MIN_PART_SIZE, Math.floor((this.totalBytes || 0) / this.MAX_PARTS));
46
- this.expectedPartsCount = this.totalBytes !== undefined ? Math.ceil(this.totalBytes / this.partSize) : undefined;
49
+ if (this.totalBytes !== undefined) {
50
+ this.expectedPartsCount = Math.ceil(this.totalBytes / this.partSize);
51
+ }
47
52
  this.__validateInput();
48
53
  }
49
54
  async abort() {
@@ -246,9 +251,14 @@ export class Upload extends EventEmitter {
246
251
  }
247
252
  let result;
248
253
  if (this.isMultiPart) {
249
- const { expectedPartsCount, uploadedParts } = this;
250
- if (expectedPartsCount !== undefined && uploadedParts.length !== expectedPartsCount) {
251
- throw new Error(`Expected ${expectedPartsCount} part(s) but uploaded ${uploadedParts.length} part(s).`);
254
+ const { expectedPartsCount, uploadedParts, totalBytes, totalBytesSource } = this;
255
+ if (totalBytes !== undefined && expectedPartsCount !== undefined && uploadedParts.length !== expectedPartsCount) {
256
+ throw new Error(`Expected ${expectedPartsCount} part(s) but uploaded ${uploadedParts.length} part(s).
257
+ The expected part count is based on the byte-count of the input.params.Body,
258
+ which was read from ${totalBytesSource} and is ${totalBytes}.
259
+ If this is not correct, provide an override value by setting a number
260
+ to input.params.ContentLength in bytes.
261
+ `);
252
262
  }
253
263
  this.uploadedParts.sort((a, b) => a.PartNumber - b.PartNumber);
254
264
  const uploadCompleteParams = {
@@ -315,7 +325,7 @@ export class Upload extends EventEmitter {
315
325
  throw new Error(`InputError: Upload requires a AWS client to do uploads with.`);
316
326
  }
317
327
  if (this.partSize < Upload.MIN_PART_SIZE) {
318
- throw new Error(`EntityTooSmall: Your proposed upload partsize [${this.partSize}] is smaller than the minimum allowed size [${Upload.MIN_PART_SIZE}] (5MB)`);
328
+ throw new Error(`EntityTooSmall: Your proposed upload part size [${this.partSize}] is smaller than the minimum allowed size [${Upload.MIN_PART_SIZE}] (5MB)`);
319
329
  }
320
330
  if (this.queueSize < 1) {
321
331
  throw new Error(`Queue size: Must have at least one uploading queue.`);
@@ -1,8 +1,9 @@
1
1
  import { Buffer } from "buffer";
2
- import { ClientDefaultValues } from "./runtimeConfig";
2
+ import { runtimeConfig } from "./runtimeConfig";
3
3
  export const byteLength = (input) => {
4
- if (input === null || input === undefined)
4
+ if (input == null) {
5
5
  return 0;
6
+ }
6
7
  if (typeof input === "string") {
7
8
  return Buffer.byteLength(input);
8
9
  }
@@ -15,9 +16,12 @@ export const byteLength = (input) => {
15
16
  else if (typeof input.size === "number") {
16
17
  return input.size;
17
18
  }
19
+ else if (typeof input.start === "number" && typeof input.end === "number") {
20
+ return input.end + 1 - input.start;
21
+ }
18
22
  else if (typeof input.path === "string") {
19
23
  try {
20
- return ClientDefaultValues.lstatSync(input.path).size;
24
+ return runtimeConfig.lstatSync(input.path).size;
21
25
  }
22
26
  catch (error) {
23
27
  return undefined;
@@ -0,0 +1,45 @@
1
+ import { runtimeConfig } from "./runtimeConfig";
2
+ export var BYTE_LENGTH_SOURCE;
3
+ (function (BYTE_LENGTH_SOURCE) {
4
+ BYTE_LENGTH_SOURCE["EMPTY_INPUT"] = "a null or undefined Body";
5
+ BYTE_LENGTH_SOURCE["CONTENT_LENGTH"] = "the ContentLength property of the params set by the caller";
6
+ BYTE_LENGTH_SOURCE["STRING_LENGTH"] = "the encoded byte length of the Body string";
7
+ BYTE_LENGTH_SOURCE["TYPED_ARRAY"] = "the byteLength of a typed byte array such as Uint8Array";
8
+ BYTE_LENGTH_SOURCE["LENGTH"] = "the value of Body.length";
9
+ BYTE_LENGTH_SOURCE["SIZE"] = "the value of Body.size";
10
+ BYTE_LENGTH_SOURCE["START_END_DIFF"] = "the numeric difference between Body.start and Body.end";
11
+ BYTE_LENGTH_SOURCE["LSTAT"] = "the size of the file given by Body.path on disk as reported by lstatSync";
12
+ })(BYTE_LENGTH_SOURCE || (BYTE_LENGTH_SOURCE = {}));
13
+ export const byteLengthSource = (input, override) => {
14
+ if (override != null) {
15
+ return BYTE_LENGTH_SOURCE.CONTENT_LENGTH;
16
+ }
17
+ if (input == null) {
18
+ return BYTE_LENGTH_SOURCE.EMPTY_INPUT;
19
+ }
20
+ if (typeof input === "string") {
21
+ return BYTE_LENGTH_SOURCE.STRING_LENGTH;
22
+ }
23
+ if (typeof input.byteLength === "number") {
24
+ return BYTE_LENGTH_SOURCE.TYPED_ARRAY;
25
+ }
26
+ else if (typeof input.length === "number") {
27
+ return BYTE_LENGTH_SOURCE.LENGTH;
28
+ }
29
+ else if (typeof input.size === "number") {
30
+ return BYTE_LENGTH_SOURCE.SIZE;
31
+ }
32
+ else if (typeof input.start === "number" && typeof input.end === "number") {
33
+ return BYTE_LENGTH_SOURCE.START_END_DIFF;
34
+ }
35
+ else if (typeof input.path === "string") {
36
+ try {
37
+ runtimeConfig.lstatSync(input.path).size;
38
+ return BYTE_LENGTH_SOURCE.LSTAT;
39
+ }
40
+ catch (error) {
41
+ return undefined;
42
+ }
43
+ }
44
+ return undefined;
45
+ };
@@ -1,5 +1,5 @@
1
- import { ClientSharedValues } from "./runtimeConfig.shared";
2
- export const ClientDefaultValues = {
3
- ...ClientSharedValues,
1
+ import { runtimeConfigShared as shared } from "./runtimeConfig.shared";
2
+ export const runtimeConfig = {
3
+ ...shared,
4
4
  runtime: "browser",
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import { lstatSync } from "fs";
2
- import { ClientSharedValues } from "./runtimeConfig.shared";
3
- export const ClientDefaultValues = {
4
- ...ClientSharedValues,
2
+ import { runtimeConfigShared as shared } from "./runtimeConfig.shared";
3
+ export const runtimeConfig = {
4
+ ...shared,
5
5
  runtime: "node",
6
6
  lstatSync,
7
7
  };
@@ -1,5 +1,5 @@
1
- import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser";
2
- export const ClientDefaultValues = {
3
- ...BrowserDefaults,
1
+ import { runtimeConfig as browserConfig } from "./runtimeConfig.browser";
2
+ export const runtimeConfig = {
3
+ ...browserConfig,
4
4
  runtime: "react-native",
5
5
  };
@@ -1,3 +1,3 @@
1
- export const ClientSharedValues = {
1
+ export const runtimeConfigShared = {
2
2
  lstatSync: () => { },
3
3
  };
@@ -23,6 +23,7 @@ export declare class Upload extends EventEmitter {
23
23
  private readonly client;
24
24
  private readonly params;
25
25
  private totalBytes?;
26
+ private readonly totalBytesSource?;
26
27
  private bytesUploadedSoFar;
27
28
  private abortController;
28
29
  private concurrentUploaders;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Clients use util-body-length-[node|browser] instead.
3
+ * @internal
4
+ * @param input - to examine.
5
+ * @returns byte count of input or undefined if indeterminable.
6
+ */
7
+ export declare const byteLength: (input: any) => number | undefined;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare enum BYTE_LENGTH_SOURCE {
5
+ EMPTY_INPUT = "a null or undefined Body",
6
+ CONTENT_LENGTH = "the ContentLength property of the params set by the caller",
7
+ STRING_LENGTH = "the encoded byte length of the Body string",
8
+ TYPED_ARRAY = "the byteLength of a typed byte array such as Uint8Array",
9
+ LENGTH = "the value of Body.length",
10
+ SIZE = "the value of Body.size",
11
+ START_END_DIFF = "the numeric difference between Body.start and Body.end",
12
+ LSTAT = "the size of the file given by Body.path on disk as reported by lstatSync"
13
+ }
14
+ /**
15
+ * The returned value should complete the sentence, "The byte count of the data was determined by ...".
16
+ * @internal
17
+ * @param input - to examine.
18
+ * @param override - manually specified value.
19
+ * @returns source of byte count information.
20
+ */
21
+ export declare const byteLengthSource: (input: any, override?: number) => BYTE_LENGTH_SOURCE | undefined;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export declare const ClientDefaultValues: {
4
+ export declare const runtimeConfig: {
5
5
  runtime: string;
6
6
  lstatSync: () => void;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export declare const ClientDefaultValues: {
4
+ export declare const runtimeConfig: {
5
5
  runtime: string;
6
6
  lstatSync: import("fs").StatSyncFn;
7
7
  };
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export declare const ClientDefaultValues: {
4
+ export declare const runtimeConfig: {
5
5
  runtime: string;
6
6
  lstatSync: () => void;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @internal
3
3
  */
4
- export declare const ClientSharedValues: {
4
+ export declare const runtimeConfigShared: {
5
5
  lstatSync: () => void;
6
6
  };
@@ -16,6 +16,7 @@ export declare class Upload extends EventEmitter {
16
16
  private readonly client;
17
17
  private readonly params;
18
18
  private totalBytes?;
19
+ private readonly totalBytesSource?;
19
20
  private bytesUploadedSoFar;
20
21
  private abortController;
21
22
  private concurrentUploaders;
@@ -0,0 +1 @@
1
+ export declare const byteLength: (input: any) => number | undefined;
@@ -0,0 +1,14 @@
1
+ export declare enum BYTE_LENGTH_SOURCE {
2
+ EMPTY_INPUT = "a null or undefined Body",
3
+ CONTENT_LENGTH = "the ContentLength property of the params set by the caller",
4
+ STRING_LENGTH = "the encoded byte length of the Body string",
5
+ TYPED_ARRAY = "the byteLength of a typed byte array such as Uint8Array",
6
+ LENGTH = "the value of Body.length",
7
+ SIZE = "the value of Body.size",
8
+ START_END_DIFF = "the numeric difference between Body.start and Body.end",
9
+ LSTAT = "the size of the file given by Body.path on disk as reported by lstatSync",
10
+ }
11
+ export declare const byteLengthSource: (
12
+ input: any,
13
+ override?: number
14
+ ) => BYTE_LENGTH_SOURCE | undefined;
@@ -1,4 +1,4 @@
1
- export declare const ClientDefaultValues: {
1
+ export declare const runtimeConfig: {
2
2
  runtime: string;
3
3
  lstatSync: () => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- export declare const ClientDefaultValues: {
1
+ export declare const runtimeConfig: {
2
2
  runtime: string;
3
3
  lstatSync: import("fs").StatSyncFn;
4
4
  };
@@ -1,4 +1,4 @@
1
- export declare const ClientDefaultValues: {
1
+ export declare const runtimeConfig: {
2
2
  runtime: string;
3
3
  lstatSync: () => void;
4
4
  };
@@ -1,3 +1,3 @@
1
- export declare const ClientSharedValues: {
1
+ export declare const runtimeConfigShared: {
2
2
  lstatSync: () => void;
3
3
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/lib-storage",
3
- "version": "3.899.0",
3
+ "version": "3.901.0",
4
4
  "description": "Storage higher order operation",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,20 +28,20 @@
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "dependencies": {
31
- "@smithy/abort-controller": "^4.1.1",
32
- "@smithy/middleware-endpoint": "^4.2.5",
33
- "@smithy/smithy-client": "^4.6.5",
31
+ "@smithy/abort-controller": "^4.2.0",
32
+ "@smithy/middleware-endpoint": "^4.3.0",
33
+ "@smithy/smithy-client": "^4.7.0",
34
34
  "buffer": "5.6.0",
35
35
  "events": "3.3.0",
36
36
  "stream-browserify": "3.0.0",
37
37
  "tslib": "^2.6.2"
38
38
  },
39
39
  "peerDependencies": {
40
- "@aws-sdk/client-s3": "^3.899.0"
40
+ "@aws-sdk/client-s3": "^3.901.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@aws-sdk/client-s3": "3.899.0",
44
- "@smithy/types": "^4.5.0",
43
+ "@aws-sdk/client-s3": "3.901.0",
44
+ "@smithy/types": "^4.6.0",
45
45
  "@tsconfig/recommended": "1.0.1",
46
46
  "@types/node": "^18.19.69",
47
47
  "concurrently": "7.0.0",
@@ -1 +0,0 @@
1
- export declare const byteLength: (input: any) => any;
@@ -1 +0,0 @@
1
- export declare const byteLength: (input: any) => any;