/**
 * 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';
/** InvalidAuthority: Invalid authority */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_AUTHORITY = 6000;
/** ProgramPaused: Instruction is not allowed at this time */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__PROGRAM_PAUSED = 6001;
/** InvalidMessageTransmitterState: Invalid message transmitter state */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_MESSAGE_TRANSMITTER_STATE = 6002;
/** InvalidSignatureThreshold: Invalid signature threshold */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SIGNATURE_THRESHOLD = 6003;
/** SignatureThresholdAlreadySet: Signature threshold already set */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__SIGNATURE_THRESHOLD_ALREADY_SET = 6004;
/** InvalidOwner: Invalid owner */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_OWNER = 6005;
/** InvalidPauser: Invalid pauser */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_PAUSER = 6006;
/** InvalidAttesterManager: Invalid attester manager */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_ATTESTER_MANAGER = 6007;
/** InvalidAttester: Invalid attester */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_ATTESTER = 6008;
/** AttesterAlreadyEnabled: Attester already enabled */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__ATTESTER_ALREADY_ENABLED = 6009;
/** TooFewEnabledAttesters: Too few enabled attesters */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__TOO_FEW_ENABLED_ATTESTERS = 6010;
/** SignatureThresholdTooLow: Signature threshold is too low */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__SIGNATURE_THRESHOLD_TOO_LOW = 6011;
/** AttesterAlreadyDisabled: Attester already disabled */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__ATTESTER_ALREADY_DISABLED = 6012;
/** MessageBodyLimitExceeded: Message body exceeds max size */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__MESSAGE_BODY_LIMIT_EXCEEDED = 6013;
/** InvalidDestinationCaller: Invalid destination caller */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_DESTINATION_CALLER = 6014;
/** InvalidRecipient: Invalid message recipient */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_RECIPIENT = 6015;
/** SenderNotPermitted: Sender is not permitted */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__SENDER_NOT_PERMITTED = 6016;
/** InvalidSourceDomain: Invalid source domain */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SOURCE_DOMAIN = 6017;
/** InvalidDestinationDomain: Invalid destination domain */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_DESTINATION_DOMAIN = 6018;
/** InvalidMessageVersion: Invalid message version */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_MESSAGE_VERSION = 6019;
/** InvalidUsedNoncesAccount: Invalid used nonces account */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_USED_NONCES_ACCOUNT = 6020;
/** InvalidRecipientProgram: Invalid recipient program */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_RECIPIENT_PROGRAM = 6021;
/** InvalidNonce: Invalid nonce */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_NONCE = 6022;
/** NonceAlreadyUsed: Nonce already used */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__NONCE_ALREADY_USED = 6023;
/** MessageTooShort: Message is too short */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__MESSAGE_TOO_SHORT = 6024;
/** MalformedMessage: Malformed message */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__MALFORMED_MESSAGE = 6025;
/** InvalidSignatureOrderOrDupe: Invalid signature order or dupe */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SIGNATURE_ORDER_OR_DUPE = 6026;
/** InvalidAttesterSignature: Invalid attester signature */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_ATTESTER_SIGNATURE = 6027;
/** InvalidAttestationLength: Invalid attestation length */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_ATTESTATION_LENGTH = 6028;
/** InvalidSignatureRecoveryId: Invalid signature recovery ID */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SIGNATURE_RECOVERY_ID = 6029;
/** InvalidSignatureSValue: Invalid signature S value */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SIGNATURE_S_VALUE = 6030;
/** InvalidMessageHash: Invalid message hash */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_MESSAGE_HASH = 6031;
/** InvalidDestinationMessage: Invalid destination message */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__INVALID_DESTINATION_MESSAGE = 6032;
/** EventAccountWindowNotExpired: Event account window not expired */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__EVENT_ACCOUNT_WINDOW_NOT_EXPIRED = 6033;
/** DestinationDomainIsLocalDomain: Destination domain is local domain */
export declare const MESSAGE_TRANSMITTER_V2_ERROR__DESTINATION_DOMAIN_IS_LOCAL_DOMAIN = 6034;
export type MessageTransmitterV2Error = typeof MESSAGE_TRANSMITTER_V2_ERROR__ATTESTER_ALREADY_DISABLED | typeof MESSAGE_TRANSMITTER_V2_ERROR__ATTESTER_ALREADY_ENABLED | typeof MESSAGE_TRANSMITTER_V2_ERROR__DESTINATION_DOMAIN_IS_LOCAL_DOMAIN | typeof MESSAGE_TRANSMITTER_V2_ERROR__EVENT_ACCOUNT_WINDOW_NOT_EXPIRED | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_ATTESTATION_LENGTH | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_ATTESTER | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_ATTESTER_MANAGER | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_ATTESTER_SIGNATURE | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_AUTHORITY | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_DESTINATION_CALLER | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_DESTINATION_DOMAIN | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_DESTINATION_MESSAGE | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_MESSAGE_HASH | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_MESSAGE_TRANSMITTER_STATE | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_MESSAGE_VERSION | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_NONCE | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_OWNER | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_PAUSER | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_RECIPIENT | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_RECIPIENT_PROGRAM | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SIGNATURE_ORDER_OR_DUPE | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SIGNATURE_RECOVERY_ID | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SIGNATURE_S_VALUE | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SIGNATURE_THRESHOLD | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_SOURCE_DOMAIN | typeof MESSAGE_TRANSMITTER_V2_ERROR__INVALID_USED_NONCES_ACCOUNT | typeof MESSAGE_TRANSMITTER_V2_ERROR__MALFORMED_MESSAGE | typeof MESSAGE_TRANSMITTER_V2_ERROR__MESSAGE_BODY_LIMIT_EXCEEDED | typeof MESSAGE_TRANSMITTER_V2_ERROR__MESSAGE_TOO_SHORT | typeof MESSAGE_TRANSMITTER_V2_ERROR__NONCE_ALREADY_USED | typeof MESSAGE_TRANSMITTER_V2_ERROR__PROGRAM_PAUSED | typeof MESSAGE_TRANSMITTER_V2_ERROR__SENDER_NOT_PERMITTED | typeof MESSAGE_TRANSMITTER_V2_ERROR__SIGNATURE_THRESHOLD_ALREADY_SET | typeof MESSAGE_TRANSMITTER_V2_ERROR__SIGNATURE_THRESHOLD_TOO_LOW | typeof MESSAGE_TRANSMITTER_V2_ERROR__TOO_FEW_ENABLED_ATTESTERS;
export declare function getMessageTransmitterV2ErrorMessage(code: MessageTransmitterV2Error): string;
export declare function isMessageTransmitterV2Error<TProgramErrorCode extends MessageTransmitterV2Error>(error: unknown, transactionMessage: {
    instructions: Record<number, {
        programAddress: Address;
    }>;
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
    context: Readonly<{
        code: TProgramErrorCode;
    }>;
}>;
