/**
 * 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/web3-v2.js';
/** NotOwner: Only the owner can call this function! */
export declare const SVM_SPOKE_ERROR__NOT_OWNER = 6000;
/** InvalidRelayHash: Invalid relay hash! */
export declare const SVM_SPOKE_ERROR__INVALID_RELAY_HASH = 6001;
/** CanOnlyCloseFillStatusPdaIfFillDeadlinePassed: The fill deadline has not passed! */
export declare const SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED = 6002;
/** NotRelayer: The caller is not the relayer! */
export declare const SVM_SPOKE_ERROR__NOT_RELAYER = 6003;
/** CannotSetCurrentTime: Cannot set time if not in test mode! */
export declare const SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME = 6004;
/** InvalidRemoteDomain: Invalid remote domain! */
export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN = 6005;
/** InvalidRemoteSender: Invalid remote sender! */
export declare const SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER = 6006;
/** InvalidMint: Invalid mint! */
export declare const SVM_SPOKE_ERROR__INVALID_MINT = 6007;
/** ExceededPendingBridgeAmount: Exceeded pending bridge amount to HubPool! */
export declare const SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT = 6008;
/** ParamsWriteOverflow: Overflow writing to parameters account! */
export declare const SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW = 6009;
/** InvalidRefund: Invalid refund address! */
export declare const SVM_SPOKE_ERROR__INVALID_REFUND = 6010;
/** ZeroRefundClaim: Zero relayer refund claim! */
export declare const SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM = 6011;
/** NonZeroRefundClaim: Cannot close non-zero relayer refund claim! */
export declare const SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM = 6012;
/** InvalidClaimInitializer: Invalid claim initializer! */
export declare const SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER = 6013;
/** InvalidRefundTokenAccount: Invalid refund token account! */
export declare const SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT = 6014;
/** InvalidProductionSeed: Seed must be 0 in production! */
export declare const SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED = 6015;
/** InvalidATACreationAccounts: Invalid remaining accounts for ATA creation! */
export declare const SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS = 6016;
export type SvmSpokeError = typeof SVM_SPOKE_ERROR__CANNOT_SET_CURRENT_TIME | typeof SVM_SPOKE_ERROR__CAN_ONLY_CLOSE_FILL_STATUS_PDA_IF_FILL_DEADLINE_PASSED | typeof SVM_SPOKE_ERROR__EXCEEDED_PENDING_BRIDGE_AMOUNT | typeof SVM_SPOKE_ERROR__INVALID_A_T_A_CREATION_ACCOUNTS | typeof SVM_SPOKE_ERROR__INVALID_CLAIM_INITIALIZER | typeof SVM_SPOKE_ERROR__INVALID_MINT | typeof SVM_SPOKE_ERROR__INVALID_PRODUCTION_SEED | typeof SVM_SPOKE_ERROR__INVALID_REFUND | typeof SVM_SPOKE_ERROR__INVALID_REFUND_TOKEN_ACCOUNT | typeof SVM_SPOKE_ERROR__INVALID_RELAY_HASH | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_DOMAIN | typeof SVM_SPOKE_ERROR__INVALID_REMOTE_SENDER | typeof SVM_SPOKE_ERROR__NON_ZERO_REFUND_CLAIM | typeof SVM_SPOKE_ERROR__NOT_OWNER | typeof SVM_SPOKE_ERROR__NOT_RELAYER | typeof SVM_SPOKE_ERROR__PARAMS_WRITE_OVERFLOW | typeof SVM_SPOKE_ERROR__ZERO_REFUND_CLAIM;
export declare function getSvmSpokeErrorMessage(code: SvmSpokeError): string;
export declare function isSvmSpokeError<TProgramErrorCode extends SvmSpokeError>(error: unknown, transactionMessage: {
    instructions: Record<number, {
        programAddress: Address;
    }>;
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
    context: Readonly<{
        code: TProgramErrorCode;
    }>;
}>;
