/**
 * 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 AccountMeta, type AccountSignerMeta, type Address, type Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
import { TOKEN_MESSENGER_MINTER_V2_PROGRAM_ADDRESS } from '../programs';
import { type HandleReceiveMessageParams, type HandleReceiveMessageParamsArgs } from '../types';
export declare const HANDLE_RECEIVE_UNFINALIZED_MESSAGE_DISCRIMINATOR: Uint8Array;
export declare function getHandleReceiveUnfinalizedMessageDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type HandleReceiveUnfinalizedMessageInstruction<TProgram extends string = typeof TOKEN_MESSENGER_MINTER_V2_PROGRAM_ADDRESS, TAccountAuthorityPda extends string | AccountMeta<string> = string, TAccountTokenMessenger extends string | AccountMeta<string> = string, TAccountRemoteTokenMessenger extends string | AccountMeta<string> = string, TAccountTokenMinter extends string | AccountMeta<string> = string, TAccountLocalToken extends string | AccountMeta<string> = string, TAccountTokenPair extends string | AccountMeta<string> = string, TAccountFeeRecipientTokenAccount extends string | AccountMeta<string> = string, TAccountRecipientTokenAccount extends string | AccountMeta<string> = string, TAccountCustodyTokenAccount extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
    TAccountAuthorityPda extends string ? ReadonlySignerAccount<TAccountAuthorityPda> & AccountSignerMeta<TAccountAuthorityPda> : TAccountAuthorityPda,
    TAccountTokenMessenger extends string ? ReadonlyAccount<TAccountTokenMessenger> : TAccountTokenMessenger,
    TAccountRemoteTokenMessenger extends string ? ReadonlyAccount<TAccountRemoteTokenMessenger> : TAccountRemoteTokenMessenger,
    TAccountTokenMinter extends string ? ReadonlyAccount<TAccountTokenMinter> : TAccountTokenMinter,
    TAccountLocalToken extends string ? WritableAccount<TAccountLocalToken> : TAccountLocalToken,
    TAccountTokenPair extends string ? ReadonlyAccount<TAccountTokenPair> : TAccountTokenPair,
    TAccountFeeRecipientTokenAccount extends string ? WritableAccount<TAccountFeeRecipientTokenAccount> : TAccountFeeRecipientTokenAccount,
    TAccountRecipientTokenAccount extends string ? WritableAccount<TAccountRecipientTokenAccount> : TAccountRecipientTokenAccount,
    TAccountCustodyTokenAccount extends string ? WritableAccount<TAccountCustodyTokenAccount> : TAccountCustodyTokenAccount,
    TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
    TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
    TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
    ...TRemainingAccounts
]>;
export type HandleReceiveUnfinalizedMessageInstructionData = {
    discriminator: ReadonlyUint8Array;
    params: HandleReceiveMessageParams;
};
export type HandleReceiveUnfinalizedMessageInstructionDataArgs = {
    params: HandleReceiveMessageParamsArgs;
};
export declare function getHandleReceiveUnfinalizedMessageInstructionDataEncoder(): Encoder<HandleReceiveUnfinalizedMessageInstructionDataArgs>;
export declare function getHandleReceiveUnfinalizedMessageInstructionDataDecoder(): Decoder<HandleReceiveUnfinalizedMessageInstructionData>;
export declare function getHandleReceiveUnfinalizedMessageInstructionDataCodec(): Codec<HandleReceiveUnfinalizedMessageInstructionDataArgs, HandleReceiveUnfinalizedMessageInstructionData>;
export type HandleReceiveUnfinalizedMessageAsyncInput<TAccountAuthorityPda extends string = string, TAccountTokenMessenger extends string = string, TAccountRemoteTokenMessenger extends string = string, TAccountTokenMinter extends string = string, TAccountLocalToken extends string = string, TAccountTokenPair extends string = string, TAccountFeeRecipientTokenAccount extends string = string, TAccountRecipientTokenAccount extends string = string, TAccountCustodyTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
    authorityPda?: TransactionSigner<TAccountAuthorityPda>;
    tokenMessenger: Address<TAccountTokenMessenger>;
    remoteTokenMessenger: Address<TAccountRemoteTokenMessenger>;
    tokenMinter: Address<TAccountTokenMinter>;
    localToken: Address<TAccountLocalToken>;
    tokenPair: Address<TAccountTokenPair>;
    feeRecipientTokenAccount: Address<TAccountFeeRecipientTokenAccount>;
    recipientTokenAccount: Address<TAccountRecipientTokenAccount>;
    custodyTokenAccount: Address<TAccountCustodyTokenAccount>;
    tokenProgram?: Address<TAccountTokenProgram>;
    eventAuthority?: Address<TAccountEventAuthority>;
    program: Address<TAccountProgram>;
    params: HandleReceiveUnfinalizedMessageInstructionDataArgs['params'];
};
export declare function getHandleReceiveUnfinalizedMessageInstructionAsync<TAccountAuthorityPda extends string, TAccountTokenMessenger extends string, TAccountRemoteTokenMessenger extends string, TAccountTokenMinter extends string, TAccountLocalToken extends string, TAccountTokenPair extends string, TAccountFeeRecipientTokenAccount extends string, TAccountRecipientTokenAccount extends string, TAccountCustodyTokenAccount extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof TOKEN_MESSENGER_MINTER_V2_PROGRAM_ADDRESS>(input: HandleReceiveUnfinalizedMessageAsyncInput<TAccountAuthorityPda, TAccountTokenMessenger, TAccountRemoteTokenMessenger, TAccountTokenMinter, TAccountLocalToken, TAccountTokenPair, TAccountFeeRecipientTokenAccount, TAccountRecipientTokenAccount, TAccountCustodyTokenAccount, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
    programAddress?: TProgramAddress;
}): Promise<HandleReceiveUnfinalizedMessageInstruction<TProgramAddress, TAccountAuthorityPda, TAccountTokenMessenger, TAccountRemoteTokenMessenger, TAccountTokenMinter, TAccountLocalToken, TAccountTokenPair, TAccountFeeRecipientTokenAccount, TAccountRecipientTokenAccount, TAccountCustodyTokenAccount, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>>;
export type HandleReceiveUnfinalizedMessageInput<TAccountAuthorityPda extends string = string, TAccountTokenMessenger extends string = string, TAccountRemoteTokenMessenger extends string = string, TAccountTokenMinter extends string = string, TAccountLocalToken extends string = string, TAccountTokenPair extends string = string, TAccountFeeRecipientTokenAccount extends string = string, TAccountRecipientTokenAccount extends string = string, TAccountCustodyTokenAccount extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
    authorityPda: TransactionSigner<TAccountAuthorityPda>;
    tokenMessenger: Address<TAccountTokenMessenger>;
    remoteTokenMessenger: Address<TAccountRemoteTokenMessenger>;
    tokenMinter: Address<TAccountTokenMinter>;
    localToken: Address<TAccountLocalToken>;
    tokenPair: Address<TAccountTokenPair>;
    feeRecipientTokenAccount: Address<TAccountFeeRecipientTokenAccount>;
    recipientTokenAccount: Address<TAccountRecipientTokenAccount>;
    custodyTokenAccount: Address<TAccountCustodyTokenAccount>;
    tokenProgram?: Address<TAccountTokenProgram>;
    eventAuthority: Address<TAccountEventAuthority>;
    program: Address<TAccountProgram>;
    params: HandleReceiveUnfinalizedMessageInstructionDataArgs['params'];
};
export declare function getHandleReceiveUnfinalizedMessageInstruction<TAccountAuthorityPda extends string, TAccountTokenMessenger extends string, TAccountRemoteTokenMessenger extends string, TAccountTokenMinter extends string, TAccountLocalToken extends string, TAccountTokenPair extends string, TAccountFeeRecipientTokenAccount extends string, TAccountRecipientTokenAccount extends string, TAccountCustodyTokenAccount extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof TOKEN_MESSENGER_MINTER_V2_PROGRAM_ADDRESS>(input: HandleReceiveUnfinalizedMessageInput<TAccountAuthorityPda, TAccountTokenMessenger, TAccountRemoteTokenMessenger, TAccountTokenMinter, TAccountLocalToken, TAccountTokenPair, TAccountFeeRecipientTokenAccount, TAccountRecipientTokenAccount, TAccountCustodyTokenAccount, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
    programAddress?: TProgramAddress;
}): HandleReceiveUnfinalizedMessageInstruction<TProgramAddress, TAccountAuthorityPda, TAccountTokenMessenger, TAccountRemoteTokenMessenger, TAccountTokenMinter, TAccountLocalToken, TAccountTokenPair, TAccountFeeRecipientTokenAccount, TAccountRecipientTokenAccount, TAccountCustodyTokenAccount, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>;
export type ParsedHandleReceiveUnfinalizedMessageInstruction<TProgram extends string = typeof TOKEN_MESSENGER_MINTER_V2_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        authorityPda: TAccountMetas[0];
        tokenMessenger: TAccountMetas[1];
        remoteTokenMessenger: TAccountMetas[2];
        tokenMinter: TAccountMetas[3];
        localToken: TAccountMetas[4];
        tokenPair: TAccountMetas[5];
        feeRecipientTokenAccount: TAccountMetas[6];
        recipientTokenAccount: TAccountMetas[7];
        custodyTokenAccount: TAccountMetas[8];
        tokenProgram: TAccountMetas[9];
        eventAuthority: TAccountMetas[10];
        program: TAccountMetas[11];
    };
    data: HandleReceiveUnfinalizedMessageInstructionData;
};
export declare function parseHandleReceiveUnfinalizedMessageInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedHandleReceiveUnfinalizedMessageInstruction<TProgram, TAccountMetas>;
