/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from "@solana/kit"; /** InvalidAmount: Invalid amount provided. */ export declare const VOLTR_VAULT_ERROR__INVALID_AMOUNT = 6000; /** InvalidTokenMint: Invalid token mint. */ export declare const VOLTR_VAULT_ERROR__INVALID_TOKEN_MINT = 6001; /** InvalidTokenAccount: Invalid token account. */ export declare const VOLTR_VAULT_ERROR__INVALID_TOKEN_ACCOUNT = 6002; /** InvalidAccountInput: Invalid account input. */ export declare const VOLTR_VAULT_ERROR__INVALID_ACCOUNT_INPUT = 6003; /** MathOverflow: Math overflow. */ export declare const VOLTR_VAULT_ERROR__MATH_OVERFLOW = 6004; /** FeeExceedsTotalAssetValue: Fee exceeds total asset value. */ export declare const VOLTR_VAULT_ERROR__FEE_EXCEEDS_TOTAL_ASSET_VALUE = 6005; /** MaxCapExceeded: Max cap exceeded. */ export declare const VOLTR_VAULT_ERROR__MAX_CAP_EXCEEDED = 6006; /** VaultNotActive: Vault not active. */ export declare const VOLTR_VAULT_ERROR__VAULT_NOT_ACTIVE = 6007; /** ManagerNotAllowed: Manager not allowed in remaining. */ export declare const VOLTR_VAULT_ERROR__MANAGER_NOT_ALLOWED = 6008; /** OperationNotAllowed: Operation not allowed. */ export declare const VOLTR_VAULT_ERROR__OPERATION_NOT_ALLOWED = 6009; /** AdaptorEpochInvalid: Adaptor epoch invalid. */ export declare const VOLTR_VAULT_ERROR__ADAPTOR_EPOCH_INVALID = 6010; /** InvalidFeeConfiguration: Fee configuration invalid. */ export declare const VOLTR_VAULT_ERROR__INVALID_FEE_CONFIGURATION = 6011; /** WithdrawalNotYetAvailable: Withdrawal not yet available. */ export declare const VOLTR_VAULT_ERROR__WITHDRAWAL_NOT_YET_AVAILABLE = 6012; /** InvalidInput: Invalid input. */ export declare const VOLTR_VAULT_ERROR__INVALID_INPUT = 6013; /** DivisionByZero: Division by zero. */ export declare const VOLTR_VAULT_ERROR__DIVISION_BY_ZERO = 6014; /** InstantWithdrawNotAllowed: Instant withdraw not allowed. */ export declare const VOLTR_VAULT_ERROR__INSTANT_WITHDRAW_NOT_ALLOWED = 6015; /** AdaptorProgramNotWhitelisted: Adaptor program not whitelisted. */ export declare const VOLTR_VAULT_ERROR__ADAPTOR_PROGRAM_NOT_WHITELISTED = 6016; /** InvalidAdaptorPolicy: Invalid adaptor policy. */ export declare const VOLTR_VAULT_ERROR__INVALID_ADAPTOR_POLICY = 6017; export type VoltrVaultError = typeof VOLTR_VAULT_ERROR__ADAPTOR_EPOCH_INVALID | typeof VOLTR_VAULT_ERROR__ADAPTOR_PROGRAM_NOT_WHITELISTED | typeof VOLTR_VAULT_ERROR__DIVISION_BY_ZERO | typeof VOLTR_VAULT_ERROR__FEE_EXCEEDS_TOTAL_ASSET_VALUE | typeof VOLTR_VAULT_ERROR__INSTANT_WITHDRAW_NOT_ALLOWED | typeof VOLTR_VAULT_ERROR__INVALID_ACCOUNT_INPUT | typeof VOLTR_VAULT_ERROR__INVALID_ADAPTOR_POLICY | typeof VOLTR_VAULT_ERROR__INVALID_AMOUNT | typeof VOLTR_VAULT_ERROR__INVALID_FEE_CONFIGURATION | typeof VOLTR_VAULT_ERROR__INVALID_INPUT | typeof VOLTR_VAULT_ERROR__INVALID_TOKEN_ACCOUNT | typeof VOLTR_VAULT_ERROR__INVALID_TOKEN_MINT | typeof VOLTR_VAULT_ERROR__MANAGER_NOT_ALLOWED | typeof VOLTR_VAULT_ERROR__MATH_OVERFLOW | typeof VOLTR_VAULT_ERROR__MAX_CAP_EXCEEDED | typeof VOLTR_VAULT_ERROR__OPERATION_NOT_ALLOWED | typeof VOLTR_VAULT_ERROR__VAULT_NOT_ACTIVE | typeof VOLTR_VAULT_ERROR__WITHDRAWAL_NOT_YET_AVAILABLE; export declare function getVoltrVaultErrorMessage(code: VoltrVaultError): string; export declare function isVoltrVaultError(error: unknown, transactionMessage: { instructions: Record; }, code?: TProgramErrorCode): error is SolanaError & Readonly<{ context: Readonly<{ code: TProgramErrorCode; }>; }>; //# sourceMappingURL=voltrVault.d.ts.map