/**
 * 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 RECEIVE_MESSAGE_DISCRIMINATOR: Uint8Array;
export declare function getReceiveMessageDiscriminatorBytes(): ReadonlyUint8Array;
export type ReceiveMessageInstruction<TProgram extends string = typeof MESSAGE_TRANSMITTER_V2_PROGRAM_ADDRESS, TAccountPayer extends string | IAccountMeta<string> = string, TAccountCaller extends string | IAccountMeta<string> = string, TAccountAuthorityPda extends string | IAccountMeta<string> = string, TAccountMessageTransmitter extends string | IAccountMeta<string> = string, TAccountUsedNonce extends string | IAccountMeta<string> = string, TAccountReceiver extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | IAccountMeta<string> = string, TAccountProgram extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
    TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & IAccountSignerMeta<TAccountPayer> : TAccountPayer,
    TAccountCaller extends string ? ReadonlySignerAccount<TAccountCaller> & IAccountSignerMeta<TAccountCaller> : TAccountCaller,
    TAccountAuthorityPda extends string ? ReadonlyAccount<TAccountAuthorityPda> : TAccountAuthorityPda,
    TAccountMessageTransmitter extends string ? ReadonlyAccount<TAccountMessageTransmitter> : TAccountMessageTransmitter,
    TAccountUsedNonce extends string ? WritableAccount<TAccountUsedNonce> : TAccountUsedNonce,
    TAccountReceiver extends string ? ReadonlyAccount<TAccountReceiver> : TAccountReceiver,
    TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
    TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
    TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
    ...TRemainingAccounts
]>;
export type ReceiveMessageInstructionData = {
    discriminator: ReadonlyUint8Array;
    message: ReadonlyUint8Array;
    attestation: ReadonlyUint8Array;
};
export type ReceiveMessageInstructionDataArgs = {
    message: ReadonlyUint8Array;
    attestation: ReadonlyUint8Array;
};
export declare function getReceiveMessageInstructionDataEncoder(): Encoder<ReceiveMessageInstructionDataArgs>;
export declare function getReceiveMessageInstructionDataDecoder(): Decoder<ReceiveMessageInstructionData>;
export declare function getReceiveMessageInstructionDataCodec(): Codec<ReceiveMessageInstructionDataArgs, ReceiveMessageInstructionData>;
export type ReceiveMessageAsyncInput<TAccountPayer extends string = string, TAccountCaller extends string = string, TAccountAuthorityPda extends string = string, TAccountMessageTransmitter extends string = string, TAccountUsedNonce extends string = string, TAccountReceiver extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
    payer: TransactionSigner<TAccountPayer>;
    caller: TransactionSigner<TAccountCaller>;
    authorityPda?: Address<TAccountAuthorityPda>;
    messageTransmitter: Address<TAccountMessageTransmitter>;
    /** Each nonce is stored in a separate PDA */
    usedNonce: Address<TAccountUsedNonce>;
    receiver: Address<TAccountReceiver>;
    systemProgram?: Address<TAccountSystemProgram>;
    eventAuthority?: Address<TAccountEventAuthority>;
    program: Address<TAccountProgram>;
    message: ReceiveMessageInstructionDataArgs['message'];
    attestation: ReceiveMessageInstructionDataArgs['attestation'];
};
export declare function getReceiveMessageInstructionAsync<TAccountPayer extends string, TAccountCaller extends string, TAccountAuthorityPda extends string, TAccountMessageTransmitter extends string, TAccountUsedNonce extends string, TAccountReceiver extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof MESSAGE_TRANSMITTER_V2_PROGRAM_ADDRESS>(input: ReceiveMessageAsyncInput<TAccountPayer, TAccountCaller, TAccountAuthorityPda, TAccountMessageTransmitter, TAccountUsedNonce, TAccountReceiver, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
    programAddress?: TProgramAddress;
}): Promise<ReceiveMessageInstruction<TProgramAddress, TAccountPayer, TAccountCaller, TAccountAuthorityPda, TAccountMessageTransmitter, TAccountUsedNonce, TAccountReceiver, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
export type ReceiveMessageInput<TAccountPayer extends string = string, TAccountCaller extends string = string, TAccountAuthorityPda extends string = string, TAccountMessageTransmitter extends string = string, TAccountUsedNonce extends string = string, TAccountReceiver extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
    payer: TransactionSigner<TAccountPayer>;
    caller: TransactionSigner<TAccountCaller>;
    authorityPda: Address<TAccountAuthorityPda>;
    messageTransmitter: Address<TAccountMessageTransmitter>;
    /** Each nonce is stored in a separate PDA */
    usedNonce: Address<TAccountUsedNonce>;
    receiver: Address<TAccountReceiver>;
    systemProgram?: Address<TAccountSystemProgram>;
    eventAuthority: Address<TAccountEventAuthority>;
    program: Address<TAccountProgram>;
    message: ReceiveMessageInstructionDataArgs['message'];
    attestation: ReceiveMessageInstructionDataArgs['attestation'];
};
export declare function getReceiveMessageInstruction<TAccountPayer extends string, TAccountCaller extends string, TAccountAuthorityPda extends string, TAccountMessageTransmitter extends string, TAccountUsedNonce extends string, TAccountReceiver extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof MESSAGE_TRANSMITTER_V2_PROGRAM_ADDRESS>(input: ReceiveMessageInput<TAccountPayer, TAccountCaller, TAccountAuthorityPda, TAccountMessageTransmitter, TAccountUsedNonce, TAccountReceiver, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
    programAddress?: TProgramAddress;
}): ReceiveMessageInstruction<TProgramAddress, TAccountPayer, TAccountCaller, TAccountAuthorityPda, TAccountMessageTransmitter, TAccountUsedNonce, TAccountReceiver, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
export type ParsedReceiveMessageInstruction<TProgram extends string = typeof MESSAGE_TRANSMITTER_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        payer: TAccountMetas[0];
        caller: TAccountMetas[1];
        authorityPda: TAccountMetas[2];
        messageTransmitter: TAccountMetas[3];
        /** Each nonce is stored in a separate PDA */
        usedNonce: TAccountMetas[4];
        receiver: TAccountMetas[5];
        systemProgram: TAccountMetas[6];
        eventAuthority: TAccountMetas[7];
        program: TAccountMetas[8];
    };
    data: ReceiveMessageInstructionData;
};
export declare function parseReceiveMessageInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedReceiveMessageInstruction<TProgram, TAccountMetas>;
