import TypedBytes from './typed-bytes.js';
import '../../utils/types/bytes.js';
import 'crypto';
import '../../utils/interfaces.js';
import '../../utils/assert.js';
import '../../utils/error.js';
import '../../utils/types/string.js';
import '../../utils/types/iterable.js';
import '../../utils/types/object.js';
import '../../utils/inheritance.js';
import '../../utils/types/set.js';
import '../../utils/types/array.js';
import 'bs58';
import 'multiformats/bases/base58';
import 'varint';
import '../../utils/encoding/ss-58.js';
import 'blake2b';
import './with-base.js';
import './with-catch-null.js';
import './with-eq.js';
import './any-of.js';
import './with-from.js';
import './with-from-json-bytes.js';

/**
 * Same as `TypedBytes` but will be converted to `Array` during JSON serialization instead of hex.
 */
class TypedBytesArray extends TypedBytes {
  get value() {
    return this.bytes;
  }

  toJSON() {
    return Array.from(this);
  }

  toCheqdPayload() {
    return this.value;
  }
}

export { TypedBytesArray as default };
//# sourceMappingURL=typed-bytes-array.js.map
