import '../../generic/typed-enum.js';
import '../../generic/typed-bytes.js';
import '../../generic/typed-string.js';
import '../../generic/typed-array.js';
import '../../generic/typed-tuple.js';
import Null from '../../generic/typed-null.js';
import '../../../utils/types/array.js';
import 'crypto';
import 'bs58';
import 'multiformats/bases/base58';
import 'varint';
import '../../../utils/encoding/ss-58.js';
import TypedNumber from '../../generic/typed-number.js';
import '../../generic/typed-set.js';
import '../../generic/typed-map.js';
import TypedStruct from '../../generic/typed-struct.js';
import 'uuid';
import 'js-sha256';
export { BBS23PublicKeyPrefix, BBSPlusPublicKeyPrefix, CheqdDIDByteSize, CheqdDIDMainnetQualifier, CheqdDIDMethod, CheqdDIDQualifier, CheqdDIDTestnetQualifier, DidMethodKeyBBS23ByteSize, DidMethodKeyBBS23Prefix, DidMethodKeyBBSPlusByteSize, DidMethodKeyBBSPlusPrefix, DidMethodKeyBytePrefixBBS23, DidMethodKeyBytePrefixBBSPlus, DidMethodKeyBytePrefixEd25519, DidMethodKeyBytePrefixSecp256k1, DidMethodKeyEd25519ByteSize, DidMethodKeyEd25519Prefix, DidMethodKeyQualifier, DidMethodKeySecp256k1ByteSize, DidMethodKeySecp256k1Prefix, DockDIDByteSize, DockDIDMethod, DockDIDQualifier, Ed25519PublicKeyPrefix, Secp256k1PublicKeyPrefix } from './constants.js';
export { CheqdDidRef, CheqdNamespaceDid, DidMethodKey, DidNamespaceKey, DidRef, DockDid, DockDidOrDidMethodKey, DockNamespaceDid, NamespaceDid, possibleDids } from './typed-did/index.js';
export { Controllers } from './controllers.js';
export { VerificationRelationship } from './verification-relationship.js';
export { DidKey, DidKeyBBSPlusPublicKey, DidKeyBBSPublicKey, DidKeyEd25519PublicKey, DidKeyPSPublicKey, DidKeySecp256k1PublicKey, DidKeySr25519PublicKey, DidKeyValue, DidKeyX25519PublicKey, DidKeys, DidKeysList } from './did-key.js';
export { CheqdMainnetVerificationMethodSignature, CheqdTestnetVerificationMethodSignature, VerificationMethodSignature } from './verification-method-signature.js';
export { default as DockDidValue } from './typed-did/dock-did-value.js';
export { CheqdDLRRef, CheqdDid, CheqdDidValue, CheqdMainnetDid, CheqdMainnetDidValue, CheqdTestnetDid, CheqdTestnetDidValue } from './typed-did/cheqd-did.js';
export { DidMethodKeyPublicKey } from './typed-did/did-method-key/did-method-key-public-key.js';
import '../../../utils/types/iterable.js';
import '../../../utils/types/object.js';
import '../../../utils/interfaces.js';
import '../../../utils/assert.js';
import '../../../utils/error.js';
import '../../../utils/inheritance.js';
import '../../../utils/types/set.js';
import '../../generic/with-base.js';
import '../../../utils/types/bytes.js';
import '../../../utils/types/string.js';
import '../../generic/with-catch-null.js';
import '../../generic/with-eq.js';
import '../../generic/any-of.js';
import '../../generic/with-from.js';
import 'blake2b';
import '../../generic/with-from-json-bytes.js';
import '../../generic/create-placeholder.js';
import './typed-did/did-method-key/did-method-key-signature.js';
import '../../public-keys/public-key.js';
import '../../public-keys/public-key-x25519-value.js';
import '../../generic/sized.js';
import '../../../utils/types/number.js';
import '../../public-keys/public-key-ed25519-value.js';
import '../../../vc/crypto/constants.js';
import '../../public-keys/public-key-secp256k1-value.js';
import '../../public-keys/public-key-sr25519-value.js';
import '../../signatures/signature-value.js';
import '../../signatures/signature-ed25519-value.js';
import '../../signatures/signature-secp256k1-value.js';
import '../../signatures/signature.js';
import '../../signatures/signature-sr25519-value.js';
import '../../generic/typed-uuid.js';
import '../../generic/with-qualifier.js';
import '../../generic/utils.js';
import '../../generic/typed-bytes-array.js';
import './typed-did/signature.js';
import '../../../utils/encoding/base-58-btc.js';
import '../../offchain-signatures/params/index.js';
import '../../offchain-signatures/params/value.js';
import '../../generic/option.js';
import '../../offchain-signatures/curve-type.js';
import '../../offchain-signatures/params/id.js';
import '../../generic/with-from-dock-id.js';
import '../../offchain-signatures/public-keys/index.js';
import '../../generic/with-prop.js';
import '../../generic/with-props.js';
import '../../../vc/crypto/Bls12381BBDT16KeyPairDock2024.js';
import '@docknetwork/crypto-wasm-ts';
import '../../../vc/crypto/common/DockCryptoKeyPair.js';
import '../../../vc/crypto/Bls12381BBDT16MACDock2024.js';
import '@docknetwork/crypto-wasm-ts/lib/index.js';
import '../../../vc/crypto/common/DockCryptoSignature.js';
import 'jsonld-signatures';
import 'json-stringify-deterministic';
import 'semver/preload.js';
import '../../../vc/crypto/common/CustomLinkedDataSignature.js';
import 'base64url';
import 'jsonld';
import '../document/verification-method-ref.js';
import '../../../vc/jws.js';
import '../../../vc/crypto/Bls12381BBDT16MACProofDock2024.js';
import '../../../vc/crypto/common/DockCryptoSignatureProof.js';
import '../../../vc/crypto/Bls12381BBSKeyPairDock2023.js';
import '../../../vc/crypto/Bls12381BBSSignatureDock2022.js';
import '../../../vc/crypto/Bls12381G2KeyPairDock2022.js';
import '../../../vc/crypto/Bls12381BBSSignatureDock2023.js';
import '../../../vc/crypto/Bls12381BBSSignatureProofDock2022.js';
import '../../../vc/crypto/Bls12381BBSSignatureProofDock2023.js';
import '../../../vc/crypto/Bls12381BDDT16KeyPairDock2024.js';
import '../../../vc/crypto/Bls12381BDDT16MACDock2024.js';
import '../../../vc/crypto/Bls12381BDDT16MACProofDock2024.js';
import '../../../vc/crypto/Bls12381PSKeyPairDock2023.js';
import '../../../vc/crypto/Bls12381PSSignatureDock2023.js';
import '../../../vc/crypto/Bls12381PSSignatureProofDock2023.js';
import '@juanelas/base64';
import '../../../keypairs/keypair-secp256k1.js';
import 'elliptic';
import '../../../keypairs/dock-keypair.js';
import '@stablelib/ed25519';
import '@transmute/json-web-signature';
import '../../offchain-signatures/public-keys/value.js';
import '../../offchain-signatures/public-keys/ref.js';
import '../../offchain-signatures/public-keys/id.js';
import '../../../keypairs/did-keypair.js';
import '../document/verification-method-ref-or-ident-ref.js';
import '../document/ident-ref.js';

class DidMethodKeyDetails extends TypedStruct {
  static Classes = {
    nonce: TypedNumber,
    data: Null,
  };

  constructor(nonce) {
    super(nonce, null);
  }
}

class OnchainDidDetailsValue extends TypedStruct {
  static Classes = {
    lastKeyId: TypedNumber,
    activeControllerKeys: TypedNumber,
    activeControllers: TypedNumber,
  };
}

class StoredOnchainDidDetailsValue extends TypedStruct {
  static Classes = {
    nonce: TypedNumber,
    data: OnchainDidDetailsValue,
  };

  constructor(nonce, data) {
    super(nonce, data);
  }

  get lastKeyId() {
    return this.data.lastKeyId.value;
  }

  get activeControllerKeys() {
    return this.data.activeControllerKeys.value;
  }

  get activeControllers() {
    return this.data.activeControllers.value;
  }
}

export { DidMethodKeyDetails, OnchainDidDetailsValue, StoredOnchainDidDetailsValue };
//# sourceMappingURL=index.js.map
