/**
 * 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 Codec, type Decoder, type Encoder, type IAccountMeta, type IAccountSignerMeta, type IInstruction, type IInstructionWithAccounts, type IInstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
import { MESSAGE_TRANSMITTER_V2_PROGRAM_ADDRESS } from '../programs';
export declare const SEND_MESSAGE_DISCRIMINATOR: Uint8Array;
export declare function getSendMessageDiscriminatorBytes(): ReadonlyUint8Array;
export type SendMessageInstruction<TProgram extends string = typeof MESSAGE_TRANSMITTER_V2_PROGRAM_ADDRESS, TAccountEventRentPayer extends string | IAccountMeta<string> = string, TAccountSenderAuthorityPda extends string | IAccountMeta<string> = string, TAccountMessageTransmitter extends string | IAccountMeta<string> = string, TAccountMessageSentEventData extends string | IAccountMeta<string> = string, TAccountSenderProgram extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
    TAccountEventRentPayer extends string ? WritableSignerAccount<TAccountEventRentPayer> & IAccountSignerMeta<TAccountEventRentPayer> : TAccountEventRentPayer,
    TAccountSenderAuthorityPda extends string ? ReadonlySignerAccount<TAccountSenderAuthorityPda> & IAccountSignerMeta<TAccountSenderAuthorityPda> : TAccountSenderAuthorityPda,
    TAccountMessageTransmitter extends string ? WritableAccount<TAccountMessageTransmitter> : TAccountMessageTransmitter,
    TAccountMessageSentEventData extends string ? WritableSignerAccount<TAccountMessageSentEventData> & IAccountSignerMeta<TAccountMessageSentEventData> : TAccountMessageSentEventData,
    TAccountSenderProgram extends string ? ReadonlyAccount<TAccountSenderProgram> : TAccountSenderProgram,
    TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
    ...TRemainingAccounts
]>;
export type SendMessageInstructionData = {
    discriminator: ReadonlyUint8Array;
    destinationDomain: number;
    recipient: Address;
    destinationCaller: Address;
    minFinalityThreshold: number;
    messageBody: ReadonlyUint8Array;
};
export type SendMessageInstructionDataArgs = {
    destinationDomain: number;
    recipient: Address;
    destinationCaller: Address;
    minFinalityThreshold: number;
    messageBody: ReadonlyUint8Array;
};
export declare function getSendMessageInstructionDataEncoder(): Encoder<SendMessageInstructionDataArgs>;
export declare function getSendMessageInstructionDataDecoder(): Decoder<SendMessageInstructionData>;
export declare function getSendMessageInstructionDataCodec(): Codec<SendMessageInstructionDataArgs, SendMessageInstructionData>;
export type SendMessageInput<TAccountEventRentPayer extends string = string, TAccountSenderAuthorityPda extends string = string, TAccountMessageTransmitter extends string = string, TAccountMessageSentEventData extends string = string, TAccountSenderProgram extends string = string, TAccountSystemProgram extends string = string> = {
    eventRentPayer: TransactionSigner<TAccountEventRentPayer>;
    senderAuthorityPda: TransactionSigner<TAccountSenderAuthorityPda>;
    messageTransmitter: Address<TAccountMessageTransmitter>;
    messageSentEventData: TransactionSigner<TAccountMessageSentEventData>;
    senderProgram: Address<TAccountSenderProgram>;
    systemProgram?: Address<TAccountSystemProgram>;
    destinationDomain: SendMessageInstructionDataArgs['destinationDomain'];
    recipient: SendMessageInstructionDataArgs['recipient'];
    destinationCaller: SendMessageInstructionDataArgs['destinationCaller'];
    minFinalityThreshold: SendMessageInstructionDataArgs['minFinalityThreshold'];
    messageBody: SendMessageInstructionDataArgs['messageBody'];
};
export declare function getSendMessageInstruction<TAccountEventRentPayer extends string, TAccountSenderAuthorityPda extends string, TAccountMessageTransmitter extends string, TAccountMessageSentEventData extends string, TAccountSenderProgram extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof MESSAGE_TRANSMITTER_V2_PROGRAM_ADDRESS>(input: SendMessageInput<TAccountEventRentPayer, TAccountSenderAuthorityPda, TAccountMessageTransmitter, TAccountMessageSentEventData, TAccountSenderProgram, TAccountSystemProgram>, config?: {
    programAddress?: TProgramAddress;
}): SendMessageInstruction<TProgramAddress, TAccountEventRentPayer, TAccountSenderAuthorityPda, TAccountMessageTransmitter, TAccountMessageSentEventData, TAccountSenderProgram, TAccountSystemProgram>;
export type ParsedSendMessageInstruction<TProgram extends string = typeof MESSAGE_TRANSMITTER_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        eventRentPayer: TAccountMetas[0];
        senderAuthorityPda: TAccountMetas[1];
        messageTransmitter: TAccountMetas[2];
        messageSentEventData: TAccountMetas[3];
        senderProgram: TAccountMetas[4];
        systemProgram: TAccountMetas[5];
    };
    data: SendMessageInstructionData;
};
export declare function parseSendMessageInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedSendMessageInstruction<TProgram, TAccountMetas>;
