import { n as FheChain, t as AtLeastOneChain } from "./types-BgczXqW2.js"; import { a as hoodi, c as sepolia, i as hardhat, n as bscTestnet, o as ingenTestnet, r as chains, s as mainnet, t as anvil } from "./index-CYBH0nyo.js"; import { A as TransferCallbacks, B as TransactionReceipt, D as TransferOptions, E as ShieldPath, F as WalletAccount, G as ReadContractReturnType, H as ContractAbi, I as WalletAccountChange, J as WriteContractConfig, K as ReadFunctionName, L as WalletAccountListener, M as GenericStorage, N as GenericProvider, O as UnshieldOptions, P as GenericSigner, R as WalletAccountStore, T as ShieldOptions, U as ReadContractArgs, V as TransactionResult, W as ReadContractConfig, Y as WriteFunctionName, _ as PublicParamsData, c as DelegatedUserDecryptParams, d as EncryptParams, f as EncryptResult, ft as GenericLogger, g as PublicDecryptResult, h as NetworkType, i as StoredTransportKeyPair, j as UnshieldCallbacks, k as ShieldCallbacks, l as EIP712TypedData, m as FheEncryptionKey, n as RelayerSDK, o as TransportKeyPair, p as EncryptedValue, q as WriteContractArgs, r as Permission, s as ClearValue, u as EncryptInput, v as RelayerSDKStatus, w as ApprovalStrategy, x as UserDecryptParams, z as RawLog } from "./relayer-cleartext-DkKKjfI6.js"; import { $ as decodeDelegatedForUserDecryption, A as UnshieldPhase2StartedEvent, B as AclTopics, C as SetOperatorSubmittedEvent, D as TransferFromSubmittedEvent, E as TransactionOperation, F as ZamaSDKEventListener, G as TOKEN_TOPICS, H as DelegatedForUserDecryptionEvent, I as ZamaSDKEventType, J as UnwrapRequestedEvent, K as Topics, L as ZamaSDKEvents, M as UnwrapSubmittedEvent, N as ZamaSDKEvent, O as TransferSubmittedEvent, P as ZamaSDKEventInput, Q as decodeConfidentialTransfer, R as ACL_TOPICS, S as RevokeDelegationSubmittedEvent, T as TransactionErrorEvent, U as OnChainEvent, V as ConfidentialTransferEvent, W as RevokedDelegationForUserDecryptionEvent, X as decodeAclEvent, Y as WrapEvent, Z as decodeAclEvents, _ as DelegationSubmittedEvent, a as ZamaConfig, at as decodeWrap, b as EncryptStartEvent, ct as findUnwrapRequested, d as WorkerLike, et as decodeOnChainEvent, f as ApproveUnderlyingSubmittedEvent, g as DecryptStartEvent, h as DecryptErrorEvent, it as decodeUnwrapRequested, j as UnshieldPhase2SubmittedEvent, k as UnshieldPhase1SubmittedEvent, lt as findWrap, m as DecryptEndEvent, n as RelayerConfig, nt as decodeRevokedDelegationForUserDecryption, o as ZamaConfigBase, ot as findDelegatedForUserDecryption, p as BaseEvent, q as UnwrapFinalizedEvent, rt as decodeUnwrapFinalized, s as ZamaConfigGeneric, st as findRevokedDelegationForUserDecryption, t as CleartextRelayerConfig, tt as decodeOnChainEvents, u as RelayerDispatcher, v as EncryptEndEvent, w as ShieldSubmittedEvent, x as FinalizeUnwrapSubmittedEvent, y as EncryptErrorEvent, z as AclEvent } from "./types-BjDu-RZg.js"; import { t as ZamaConfigEthers } from "./types-Xg_On_yY.js"; import { n as MutableWalletAccountStore, r as createWalletAccountStore, t as BaseSigner } from "./base-signer-ByGw5ReU.js"; import { t as cleartext } from "./cleartext-DMW5nK1M.js"; import { $ as DecryptResult, A as DelegationExpiredError, At as decimalsContract, B as ConfigurationError, Bt as rateContract, C as InsufficientConfidentialBalanceError, Ct as ERC7984_WRAPPER_INTERFACE_ID, D as DelegationCooldownError, Dt as allowanceContract, E as DelegationContractIsSelfError, Et as supportsInterfaceContract, F as SignerNotConfiguredError, Ft as confidentialTransferContract, G as TransactionRevertedError, Gt as wrapContract, H as InvalidTransportKeyPairError, Ht as underlyingContract, I as SignerRequiredError, It as confidentialTransferFromContract, J as SigningFailedError, Jt as resolveStorage, K as DecryptionFailedError, Kt as ResolvedChainRelayer, L as WalletAccountNotReadyError, Lt as finalizeUnwrapContract, M as DelegationNotFoundError, Mt as symbolContract, N as DelegationNotPropagatedError, Nt as confidentialBalanceOfContract, O as DelegationDelegateEqualsContractError, Ot as approveContract, P as DelegationSelfNotAllowedError, Pt as confidentialTotalSupplyContract, Q as matchZamaError, R as WalletNotConnectedError, Rt as inferredTotalSupplyContract, S as ERC20ReadFailedError, St as ERC7984_INTERFACE_ID, T as AclPausedError, Tt as isConfidentialWrapperContract, U as NoCiphertextError, Ut as unwrapContract, V as RelayerRequestFailedError, Vt as setOperatorContract, W as TransportKeyPairExpiredError, Wt as unwrapFromBalanceContract, X as ZamaError, Y as SigningRejectedError, Yt as createConfig, Z as ZamaErrorCode, _ as Decryption, _t as getDelegationExpiryContract, a as savePendingUnshield, b as BalanceCheckUnavailableError, bt as transferAndCallContract, c as ListPairsOptions, ct as TokenWrapperPairWithMetadata, d as WrappedToken, dt as getTokenPairContract, et as EncryptedInput, f as BatchBalancesResult, ft as getTokenPairsContract, g as Delegations, gt as delegateForUserDecryptionContract, h as Permits, ht as isConfidentialTokenValidContract, i as loadPendingUnshieldRequest, j as DelegationExpiryUnchangedError, jt as nameContract, k as DelegationExpirationTooSoonError, kt as balanceOfContract, l as WrappersRegistry, lt as getConfidentialTokenAddressContract, m as Token, mt as getTokenPairsSliceContract, n as clearPendingUnshield, o as ZamaSDK, ot as PaginatedResult, p as BatchDecryptAsOptions, pt as getTokenPairsLengthContract, q as EncryptionFailedError, qt as resolveChainRelayers, r as loadPendingUnshield, s as DefaultRegistryAddresses, st as TokenWrapperPair, t as PendingUnshieldRequest, u as WrappersRegistryConfig, ut as getTokenAddressContract, v as BatchDecryptItem, vt as isHandleDelegatedContract, w as InsufficientERC20BalanceError, wt as isConfidentialTokenContract, x as BalanceErrorDetails, xt as ERC1363_INTERFACE_ID, y as BatchDecryptResult, yt as revokeDelegationContract, z as ChainMismatchError, zt as isOperatorContract } from "./index-DoVo9J1n.js"; import { t as ZamaConfigViem } from "./types-DiZhtG8i.js"; import { Address, Hex } from "viem"; import { FheTypeName, FhevmInstanceConfig, InputProofBytesType, KmsDelegatedUserDecryptEIP712Type as KmsDelegatedDecryptEIP712Type, ZKProofLike } from "@zama-fhe/relayer-sdk/bundle"; //#region src/utils/handles.d.ts declare const ZERO_ENCRYPTED_VALUE: "0x0000000000000000000000000000000000000000000000000000000000000000"; /** * Check whether an encrypted value represents the zero value. */ declare function isEncryptedValueZero(encryptedValue: string): boolean; //#endregion //#region src/storage/memory-storage.d.ts /** In-memory credential store. Credentials are lost on page reload. */ declare class MemoryStorage implements GenericStorage { #private; get(key: string): Promise; set(key: string, value: T): Promise; delete(key: string): Promise; } /** Default singleton for application-wide use. */ declare const memoryStorage: MemoryStorage; //#endregion //#region src/storage/indexeddb-storage.d.ts /** * IndexedDB-backed {@link GenericStorage}. * * Stores keypair and permit objects keyed by a hashed wallet address. The * SDK delegates security to the storage backend — values are persisted * verbatim with no SDK-layer encryption. */ declare class IndexedDBStorage implements GenericStorage { #private; constructor(dbName?: string, dbVersion?: number, storeName?: string); get(key: string): Promise; set(key: string, value: T): Promise; delete(key: string): Promise; clear(): Promise; } /** Default singleton for application-wide use. */ declare const indexedDBStorage: IndexedDBStorage; //#endregion //#region src/storage/chrome-session-storage.d.ts /** * {@link GenericStorage} backed by `chrome.storage.session`. * * Use this in MV3 web extensions so the wallet signature survives * service worker restarts and is shared across popup, background, * and content script contexts. * * @example * ```ts * import { ZamaSDK, indexedDBStorage, chromeSessionStorage } from "@zama-fhe/sdk"; * * const sdk = new ZamaSDK({ * relayer, * signer, * storage: indexedDBStorage, * sessionStorage: chromeSessionStorage, * }); * ``` */ declare class ChromeSessionStorage implements GenericStorage { get(key: string): Promise; set(key: string, value: unknown): Promise; delete(key: string): Promise; } /** Default singleton for application-wide use. */ declare const chromeSessionStorage: ChromeSessionStorage; //#endregion export { ACL_TOPICS, type AclEvent, AclPausedError, AclTopics, type Address, type ApprovalStrategy, type ApproveUnderlyingSubmittedEvent, type AtLeastOneChain, BalanceCheckUnavailableError, type BalanceErrorDetails, type BaseEvent, BaseSigner, type BatchBalancesResult, type BatchDecryptAsOptions, type BatchDecryptItem, type BatchDecryptResult, ChainMismatchError, ChromeSessionStorage, type ClearValue, type CleartextRelayerConfig, type ConfidentialTransferEvent, ConfigurationError, type ContractAbi, type DecryptEndEvent, type DecryptErrorEvent, type EncryptedInput as DecryptInput, type PublicDecryptResult as DecryptPublicValuesResult, type DecryptResult, type DecryptStartEvent, type UserDecryptParams as DecryptValuesParams, Decryption, DecryptionFailedError, DefaultRegistryAddresses, type DelegatedUserDecryptParams as DelegatedDecryptValuesParams, type DelegatedForUserDecryptionEvent, DelegationContractIsSelfError, DelegationCooldownError, DelegationDelegateEqualsContractError, DelegationExpirationTooSoonError, DelegationExpiredError, DelegationExpiryUnchangedError, DelegationNotFoundError, DelegationNotPropagatedError, DelegationSelfNotAllowedError, type DelegationSubmittedEvent, Delegations, type EIP712TypedData, ERC1363_INTERFACE_ID, ERC20ReadFailedError, ERC7984_INTERFACE_ID, ERC7984_WRAPPER_INTERFACE_ID, type EncryptEndEvent, type EncryptErrorEvent, type EncryptInput, type EncryptParams, type EncryptResult, type EncryptStartEvent, type EncryptedValue, EncryptionFailedError, type FheChain, type FheEncryptionKey, type FheTypeName, type FhevmInstanceConfig, type FinalizeUnwrapSubmittedEvent, type GenericLogger, type GenericProvider, type GenericSigner, type GenericStorage, type Hex, IndexedDBStorage, type InputProofBytesType, InsufficientConfidentialBalanceError, InsufficientERC20BalanceError, InvalidTransportKeyPairError, type KmsDelegatedDecryptEIP712Type, type ListPairsOptions, MemoryStorage, MutableWalletAccountStore, type NetworkType, NoCiphertextError, type OnChainEvent, type PaginatedResult, type PendingUnshieldRequest, type Permission, Permits, type PublicParamsData, type RawLog, type ReadContractArgs, type ReadContractConfig, type ReadContractReturnType, type ReadFunctionName, type RelayerConfig, type RelayerDispatcher, RelayerRequestFailedError, type RelayerSDK, type RelayerSDKStatus, type ResolvedChainRelayer, type RevokeDelegationSubmittedEvent, type RevokedDelegationForUserDecryptionEvent, type SetOperatorSubmittedEvent, type ShieldCallbacks, type ShieldOptions, type ShieldPath, type ShieldSubmittedEvent, SignerNotConfiguredError, SignerRequiredError, SigningFailedError, SigningRejectedError, type StoredTransportKeyPair, TOKEN_TOPICS, Token, type TokenWrapperPair, type TokenWrapperPairWithMetadata, Topics, type TransactionErrorEvent, type TransactionOperation, type TransactionReceipt, type TransactionResult, TransactionRevertedError, type TransferCallbacks, type TransferFromSubmittedEvent, type TransferOptions, type TransferSubmittedEvent, type TransportKeyPair, TransportKeyPairExpiredError, type UnshieldCallbacks, type UnshieldOptions, type UnshieldPhase1SubmittedEvent, type UnshieldPhase2StartedEvent, type UnshieldPhase2SubmittedEvent, type UnwrapFinalizedEvent, type UnwrapRequestedEvent, type UnwrapSubmittedEvent, type WalletAccount, type WalletAccountChange, type WalletAccountListener, WalletAccountNotReadyError, type WalletAccountStore, WalletNotConnectedError, type WorkerLike, type WrapEvent, WrappedToken, WrappersRegistry, type WrappersRegistryConfig, type WriteContractArgs, type WriteContractConfig, type WriteFunctionName, ZERO_ENCRYPTED_VALUE, type ZKProofLike, type ZamaConfig, type ZamaConfigBase, type ZamaConfigEthers, type ZamaConfigGeneric, type ZamaConfigViem, ZamaError, ZamaErrorCode, ZamaSDK, type ZamaSDKEvent, type ZamaSDKEventInput, type ZamaSDKEventListener, type ZamaSDKEventType, ZamaSDKEvents, allowanceContract, anvil, approveContract, balanceOfContract, bscTestnet, chains, chromeSessionStorage, clearPendingUnshield, cleartext, confidentialBalanceOfContract, confidentialTotalSupplyContract, confidentialTransferContract, confidentialTransferFromContract, createConfig, createWalletAccountStore, decimalsContract, decodeAclEvent, decodeAclEvents, decodeConfidentialTransfer, decodeDelegatedForUserDecryption, decodeOnChainEvent, decodeOnChainEvents, decodeRevokedDelegationForUserDecryption, decodeUnwrapFinalized, decodeUnwrapRequested, decodeWrap, delegateForUserDecryptionContract, finalizeUnwrapContract, findDelegatedForUserDecryption, findRevokedDelegationForUserDecryption, findUnwrapRequested, findWrap, getConfidentialTokenAddressContract, getDelegationExpiryContract, getTokenAddressContract, getTokenPairContract, getTokenPairsContract, getTokenPairsLengthContract, getTokenPairsSliceContract, hardhat, hoodi, indexedDBStorage, inferredTotalSupplyContract, ingenTestnet, isConfidentialTokenContract, isConfidentialTokenValidContract, isConfidentialWrapperContract, isEncryptedValueZero, isHandleDelegatedContract, isOperatorContract, loadPendingUnshield, loadPendingUnshieldRequest, mainnet, matchZamaError, memoryStorage, nameContract, rateContract, resolveChainRelayers, resolveStorage, revokeDelegationContract, savePendingUnshield, sepolia, setOperatorContract, supportsInterfaceContract, symbolContract, transferAndCallContract, underlyingContract, unwrapContract, unwrapFromBalanceContract, wrapContract }; //# sourceMappingURL=index.d.ts.map