import { FeeEstimation } from "../shared-types.cjs"; import { BaseError } from "@defuse-protocol/internal-utils"; //#region src/classes/errors.d.ts type FeeExceedsAmountErrorType = FeeExceedsAmountError & { name: "FeeExceedsAmountError"; }; declare class FeeExceedsAmountError extends BaseError { feeEstimation: FeeEstimation; amount: bigint; constructor(feeEstimation: FeeEstimation, amount: bigint); } type MinWithdrawalAmountErrorType = MinWithdrawalAmountError & { name: "MinWithdrawalAmountError"; }; declare class MinWithdrawalAmountError extends BaseError { minAmount: bigint; requestedAmount: bigint; assetId: string; constructor(minAmount: bigint, requestedAmount: bigint, assetId: string); } type UnsupportedDestinationMemoErrorType = UnsupportedDestinationMemoError & { name: "UnsupportedDestinationMemoError"; }; declare class UnsupportedDestinationMemoError extends BaseError { blockchain: string; assetId: string; constructor(blockchain: string, assetId: string); } type TrustlineNotFoundErrorType = TrustlineNotFoundError & { name: "TrustlineNotFoundError"; }; declare class TrustlineNotFoundError extends BaseError { destinationAddress: string; assetId: string; blockchain: string; tokenAddress: string; constructor(destinationAddress: string, assetId: string, blockchain: string, tokenAddress: string); } type UnsupportedAssetIdErrorType = UnsupportedAssetIdError & { name: "UnsupportedAssetIdError"; }; declare class UnsupportedAssetIdError extends BaseError { assetId: string; constructor(assetId: string, details: string); } type DestinationAddressMatchesTokenAddressErrorType = DestinationAddressMatchesTokenAddressError & { name: "DestinationAddressMatchesTokenAddressError"; }; declare class DestinationAddressMatchesTokenAddressError extends BaseError { tokenAddress: string; assetId: string; constructor(tokenAddress: string, assetId: string); } //#endregion export { DestinationAddressMatchesTokenAddressError, DestinationAddressMatchesTokenAddressErrorType, FeeExceedsAmountError, FeeExceedsAmountErrorType, MinWithdrawalAmountError, MinWithdrawalAmountErrorType, TrustlineNotFoundError, TrustlineNotFoundErrorType, UnsupportedAssetIdError, UnsupportedAssetIdErrorType, UnsupportedDestinationMemoError, UnsupportedDestinationMemoErrorType };