import { ChainId } from 'caip'; import type { AssetId } from './types'; /** * Error thrown when an asset entity is not found */ export declare class AssetEntityNotFoundError extends Error { constructor(assetId: AssetId, chainId: ChainId); } /** * Error thrown when trying to get the balance of a non-ERC-20 token */ export declare class NonErc20TokenBalanceError extends Error { constructor(assetId: AssetId, chainId: ChainId); } /** * Error throw when an invalid password format is provided */ export declare class InvalidPasswordFormatError extends Error { constructor(reason: string); } /** * Error thrown when an existing password is required but not provided */ export declare class ExistingPasswordRequiredError extends Error { constructor(); } /** * Error thrown when an existing password does not match the stored password */ export declare class ExistingPasswordMismatchError extends Error { constructor(); } /** * Error thrown when no password has been set (i.e. no encrypted vault exists) */ export declare class NoPasswordSetError extends Error { constructor(); } /** * Error thrown when an operation is attempted while the vault is locked */ export declare class VaultLockedError extends Error { constructor(); } /** * Error thrown when decryption fails due to an incorrect password */ export declare class IncorrectPasswordError extends Error { constructor(); } /** * Error thrown when vault data is structurally invalid (e.g. bad base64, wrong IV length) */ export declare class VaultCorruptedError extends Error { constructor(reason: string); } /** * Error thrown when attempting to encrypt an empty plaintext */ export declare class EmptyPlaintextError extends Error { constructor(); } /** * Error thrown when key derivation fails (e.g. Web Crypto importKey rejection) */ export declare class KeyDerivationError extends Error { constructor(reason: string); } /** * Error thrown when the Web Crypto CSPRNG (globalThis.crypto.getRandomValues) * is not available in the current runtime environment */ export declare class CsprngUnavailableError extends Error { constructor(); } /** * Error thrown when an asset has invalid decimal configuration */ export declare class InvalidAssetDecimalsError extends Error { constructor(reason: string); } /** * Error thrown when an asset has missing or invalid metadata */ export declare class InvalidAssetMetadataError extends Error { constructor(reason: string); } /** * Error thrown when on-chain decimals do not match the entity decimals * configured in assets.json */ export declare class OnChainDecimalsMismatchError extends Error { constructor(assetId: AssetId, chainId: ChainId, entityDecimals: number, onChainDecimals: number); } /** * Error thrown when an asset type is not supported */ export declare class UnsupportedAssetTypeError extends Error { constructor(assetId: AssetId, chainId: ChainId); } /** * Error thrown when an invalid destination address is provided */ export declare class InvalidDestinationAddressError extends Error { constructor(address: string); } /** * Error thrown when a vault has no withdrawable assets */ export declare class NoWithdrawableAssetsError extends Error { constructor(accountId: string); } /** * Error thrown when the native asset balance is too small to cover gas costs */ export declare class InsufficientNativeBalanceForGasError extends Error { constructor(accountId: string); } /** * Error thrown when a PublicClient is missing required chain information * * This occurs when a PublicClient is created without a chain or the chain * doesn't have an id property. All blockchain operations require a valid * chain to determine which network to interact with. */ export declare class MissingChainError extends Error { constructor(); } /** * Error thrown when an operation is not supported by the ML-DSA-44 validator */ export declare class NotSupportedByMlDsa44ValidatorError extends Error { constructor(operation: string); } /** * Error thrown when attempting to sign with an ML-DSA-44 stub signer */ export declare class MlDsa44StubSignerError extends Error { constructor(); } /** * Error thrown when ML-DSA-44 private key is missing from persisted address */ export declare class MlDsa44PrivateKeyMissingError extends Error { constructor(); } /** * Error thrown when ML-DSA-44 public key hash is missing from persisted address */ export declare class MlDsa44PublicKeyHashMissingError extends Error { constructor(); } /** * Error thrown when ML-DSA-44 public key hash mismatch occurs */ export declare class MlDsa44PublicKeyHashMismatchError extends Error { constructor(); } /** * Error thrown when ZeroDev Kernel account is not initialized */ export declare class KernelAccountNotInitializedError extends Error { constructor(); } /** * Error thrown when attempting to set a validator that is already in use */ export declare class AlreadyUsingValidatorError extends Error { constructor(validatorType: string); } /** * Error thrown when mnemonic is required but not available */ export declare class MnemonicRequiredError extends Error { constructor(operation: string); } /** * Error thrown when a validator switch user operation fails */ export declare class ValidatorSwitchFailedError extends Error { constructor(); } /** * Error thrown when no address is found at the specified index */ export declare class AddressNotFoundAtIndexError extends Error { constructor(index: number, expectedAddress: string); } /** * Error thrown when address at index does not match expected address */ export declare class AddressIndexMismatchError extends Error { constructor(index: number, expectedAddress: string, actualAddress: string); } /** * Error thrown when a withdrawal record cannot be located by id. */ export declare class WithdrawalRecordNotFoundError extends Error { constructor(id: string); }