export default CACHE; export type ContractId = import("./contract/ContractId.js").default; export type AccountId = import("./account/AccountId.js").default; export type KeyList = import("./KeyList.js").default; export type PublicKey = import("./PublicKey.js").default; export type PrivateKey = import("./PrivateKey.js").default; export type EvmAddress = import("./EvmAddress.js").default; export type EthereumTransactionData = import("./EthereumTransactionData.js").default; export type TransactionReceiptQuery = import("./transaction/TransactionReceiptQuery.js").default; export type TransactionRecordQuery = import("./transaction/TransactionRecordQuery.js").default; export type AddressBookQuery = import("./network/AddressBookQuery.js").default; export namespace HashgraphProto { namespace proto { type IKey = import("@hashgraph/proto").proto.IKey; type IKeyList = import("@hashgraph/proto").proto.IKeyList; type IThresholdKey = import("@hashgraph/proto").proto.IThresholdKey; type IContractID = import("@hashgraph/proto").proto.IContractID; } } export namespace cryptography { type PrivateKey = import("@hashgraph/cryptography").PrivateKey; } export type FromProtobufKeyFuncT = (proto: ProtobufT) => SdkT; declare const CACHE: Cache; /** * @typedef {import("./contract/ContractId.js").default} ContractId * @typedef {import("./account/AccountId.js").default} AccountId * @typedef {import("./KeyList.js").default} KeyList * @typedef {import("./PublicKey.js").default} PublicKey * @typedef {import("./PrivateKey.js").default} PrivateKey * @typedef {import("./EvmAddress.js").default} EvmAddress * @typedef {import("./EthereumTransactionData.js").default} EthereumTransactionData * @typedef {import("./transaction/TransactionReceiptQuery.js").default} TransactionReceiptQuery * @typedef {import("./transaction/TransactionRecordQuery.js").default} TransactionRecordQuery * @typedef {import("./network/AddressBookQuery.js").default} AddressBookQuery */ /** * @namespace proto * @typedef {import("@hashgraph/proto").proto.IKey} HashgraphProto.proto.IKey * @typedef {import("@hashgraph/proto").proto.IKeyList} HashgraphProto.proto.IKeyList * @typedef {import("@hashgraph/proto").proto.IThresholdKey} HashgraphProto.proto.IThresholdKey * @typedef {import("@hashgraph/proto").proto.IContractID} HashgraphProto.proto.IContractID */ /** * @namespace cryptography * @typedef {import("@hashgraph/cryptography").PrivateKey} cryptography.PrivateKey */ /** * @template {object} ProtobufT * @template {object} SdkT * @typedef {{ (proto: ProtobufT): SdkT }} FromProtobufKeyFuncT */ /** * This variable is strictly designed to prevent cyclic dependencies. */ declare class Cache { /** @type {number} */ _timeDrift: number; /** @type {FromProtobufKeyFuncT | null} */ _contractId: FromProtobufKeyFuncT | null; /** @type {FromProtobufKeyFuncT | null} */ _keyList: FromProtobufKeyFuncT | null; /** @type {FromProtobufKeyFuncT | null} */ _thresholdKey: FromProtobufKeyFuncT | null; /** @type {FromProtobufKeyFuncT | null} */ _publicKeyED25519: FromProtobufKeyFuncT | null; /** @type {FromProtobufKeyFuncT | null} */ _publicKeyECDSA: FromProtobufKeyFuncT | null; /** @type {((key: cryptography.PrivateKey) => PrivateKey) | null} */ _privateKeyConstructor: ((key: cryptography.PrivateKey) => PrivateKey) | null; /** @type {((shard: Long | number, realm: Long | number, key: PublicKey) => AccountId) | null} */ _accountIdConstructor: ((shard: Long | number, realm: Long | number, key: PublicKey) => AccountId) | null; /** @type {FromProtobufKeyFuncT | null} */ _delegateContractId: FromProtobufKeyFuncT | null; /** @type {FromProtobufKeyFuncT | null} */ _evmAddress: FromProtobufKeyFuncT | null; /** @type {((bytes: Uint8Array) => EthereumTransactionData) | null} */ _ethereumTransactionDataLegacyFromBytes: ((bytes: Uint8Array) => EthereumTransactionData) | null; /** @type {((bytes: Uint8Array) => EthereumTransactionData) | null} */ _ethereumTransactionDataEip1559FromBytes: ((bytes: Uint8Array) => EthereumTransactionData) | null; /** @type {(() => TransactionReceiptQuery) | null} */ _transactionReceiptQueryConstructor: (() => TransactionReceiptQuery) | null; /** @type {(() => TransactionRecordQuery) | null} */ _transactionRecordQueryConstructor: (() => TransactionRecordQuery) | null; /** * @param {number} timeDrift */ setTimeDrift(timeDrift: number): void; /** * @returns {number} */ get timeDrift(): number; /** * @param {FromProtobufKeyFuncT} contractId */ setContractId(contractId: FromProtobufKeyFuncT): void; /** * @returns {FromProtobufKeyFuncT} */ get contractId(): FromProtobufKeyFuncT; /** * @param {FromProtobufKeyFuncT} keyList */ setKeyList(keyList: FromProtobufKeyFuncT): void; /** * @returns {FromProtobufKeyFuncT} */ get keyList(): FromProtobufKeyFuncT; /** * @param {FromProtobufKeyFuncT} thresholdKey */ setThresholdKey(thresholdKey: FromProtobufKeyFuncT): void; /** * @returns {FromProtobufKeyFuncT} */ get thresholdKey(): FromProtobufKeyFuncT; /** * @param {FromProtobufKeyFuncT} publicKeyED25519 */ setPublicKeyED25519(publicKeyED25519: FromProtobufKeyFuncT): void; /** * @returns {FromProtobufKeyFuncT} */ get publicKeyED25519(): FromProtobufKeyFuncT; /** * @param {FromProtobufKeyFuncT} publicKeyECDSA */ setPublicKeyECDSA(publicKeyECDSA: FromProtobufKeyFuncT): void; /** * @returns {FromProtobufKeyFuncT} */ get publicKeyECDSA(): FromProtobufKeyFuncT; /** * @param {((key: cryptography.PrivateKey) => PrivateKey)} privateKeyConstructor */ setPrivateKeyConstructor(privateKeyConstructor: (key: cryptography.PrivateKey) => PrivateKey): void; /** * @returns {((key: cryptography.PrivateKey) => PrivateKey)} */ get privateKeyConstructor(): (key: cryptography.PrivateKey) => PrivateKey; /** * @param {((shard: Long | number, realm: Long | number, key: PublicKey) => AccountId)} accountIdConstructor */ setAccountIdConstructor(accountIdConstructor: (shard: Long | number, realm: Long | number, key: PublicKey) => AccountId): void; /** * @returns {((shard: Long | number, realm: Long | number, key: PublicKey) => AccountId)} */ get accountIdConstructor(): (shard: Long | number, realm: Long | number, key: PublicKey) => AccountId; /** * @param {FromProtobufKeyFuncT} delegateContractId */ setDelegateContractId(delegateContractId: FromProtobufKeyFuncT): void; /** * @returns {FromProtobufKeyFuncT} */ get delegateContractId(): FromProtobufKeyFuncT; /** * @param {FromProtobufKeyFuncT} evmAddress */ setEvmAddress(evmAddress: FromProtobufKeyFuncT): void; /** * @returns {FromProtobufKeyFuncT} */ get evmAddress(): FromProtobufKeyFuncT; /** * @param {((bytes: Uint8Array) => EthereumTransactionData)} ethereumTransactionDataLegacyFromBytes */ setEthereumTransactionDataLegacyFromBytes(ethereumTransactionDataLegacyFromBytes: (bytes: Uint8Array) => EthereumTransactionData): void; /** * @returns {((bytes: Uint8Array) => EthereumTransactionData)} */ get ethereumTransactionDataLegacyFromBytes(): (bytes: Uint8Array) => EthereumTransactionData; /** * @param {((bytes: Uint8Array) => EthereumTransactionData)} ethereumTransactionDataEip1559FromBytes */ setEthereumTransactionDataEip1559FromBytes(ethereumTransactionDataEip1559FromBytes: (bytes: Uint8Array) => EthereumTransactionData): void; /** * @returns {((bytes: Uint8Array) => EthereumTransactionData)} */ get ethereumTransactionDataEip1559FromBytes(): (bytes: Uint8Array) => EthereumTransactionData; /** * @param {(() => TransactionReceiptQuery)} transactionReceiptQueryConstructor */ setTransactionReceiptQueryConstructor(transactionReceiptQueryConstructor: (() => TransactionReceiptQuery)): void; /** * @returns {(() => TransactionReceiptQuery)} */ get transactionReceiptQueryConstructor(): () => TransactionReceiptQuery; /** * @param {(() => TransactionRecordQuery)} transactionRecordQueryConstructor */ setTransactionRecordQueryConstructor(transactionRecordQueryConstructor: (() => TransactionRecordQuery)): void; /** * @returns {(() => TransactionRecordQuery)} */ get transactionRecordQueryConstructor(): () => TransactionRecordQuery; /** * @param {() => AddressBookQuery} addressBookQueryConstructor */ setAddressBookQueryConstructor(addressBookQueryConstructor: () => AddressBookQuery): void; _addressBookQueryConstructor: (() => AddressBookQuery) | undefined; /** * @returns {() => AddressBookQuery} */ get addressBookQueryConstructor(): () => AddressBookQuery; }