/**
 * 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/web3-v2.js';
import { SVM_SPOKE_PROGRAM_ADDRESS } from '../programs';
export declare const RELAY_ROOT_BUNDLE_DISCRIMINATOR: Uint8Array;
export declare function getRelayRootBundleDiscriminatorBytes(): ReadonlyUint8Array;
export type RelayRootBundleInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountSigner extends string | IAccountMeta<string> = string, TAccountPayer extends string | IAccountMeta<string> = string, TAccountState extends string | IAccountMeta<string> = string, TAccountRootBundle 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<[
    TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & IAccountSignerMeta<TAccountSigner> : TAccountSigner,
    TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & IAccountSignerMeta<TAccountPayer> : TAccountPayer,
    TAccountState extends string ? WritableAccount<TAccountState> : TAccountState,
    TAccountRootBundle extends string ? WritableAccount<TAccountRootBundle> : TAccountRootBundle,
    TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
    TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
    TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
    ...TRemainingAccounts
]>;
export type RelayRootBundleInstructionData = {
    discriminator: ReadonlyUint8Array;
    relayerRefundRoot: ReadonlyUint8Array;
    slowRelayRoot: ReadonlyUint8Array;
};
export type RelayRootBundleInstructionDataArgs = {
    relayerRefundRoot: ReadonlyUint8Array;
    slowRelayRoot: ReadonlyUint8Array;
};
export declare function getRelayRootBundleInstructionDataEncoder(): Encoder<RelayRootBundleInstructionDataArgs>;
export declare function getRelayRootBundleInstructionDataDecoder(): Decoder<RelayRootBundleInstructionData>;
export declare function getRelayRootBundleInstructionDataCodec(): Codec<RelayRootBundleInstructionDataArgs, RelayRootBundleInstructionData>;
export type RelayRootBundleAsyncInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountState extends string = string, TAccountRootBundle extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
    signer: TransactionSigner<TAccountSigner>;
    payer: TransactionSigner<TAccountPayer>;
    state: Address<TAccountState>;
    rootBundle: Address<TAccountRootBundle>;
    systemProgram?: Address<TAccountSystemProgram>;
    eventAuthority?: Address<TAccountEventAuthority>;
    program: Address<TAccountProgram>;
    relayerRefundRoot: RelayRootBundleInstructionDataArgs['relayerRefundRoot'];
    slowRelayRoot: RelayRootBundleInstructionDataArgs['slowRelayRoot'];
};
export declare function getRelayRootBundleInstructionAsync<TAccountSigner extends string, TAccountPayer extends string, TAccountState extends string, TAccountRootBundle extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: RelayRootBundleAsyncInput<TAccountSigner, TAccountPayer, TAccountState, TAccountRootBundle, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
    programAddress?: TProgramAddress;
}): Promise<RelayRootBundleInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountState, TAccountRootBundle, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
export type RelayRootBundleInput<TAccountSigner extends string = string, TAccountPayer extends string = string, TAccountState extends string = string, TAccountRootBundle extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
    signer: TransactionSigner<TAccountSigner>;
    payer: TransactionSigner<TAccountPayer>;
    state: Address<TAccountState>;
    rootBundle: Address<TAccountRootBundle>;
    systemProgram?: Address<TAccountSystemProgram>;
    eventAuthority: Address<TAccountEventAuthority>;
    program: Address<TAccountProgram>;
    relayerRefundRoot: RelayRootBundleInstructionDataArgs['relayerRefundRoot'];
    slowRelayRoot: RelayRootBundleInstructionDataArgs['slowRelayRoot'];
};
export declare function getRelayRootBundleInstruction<TAccountSigner extends string, TAccountPayer extends string, TAccountState extends string, TAccountRootBundle extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: RelayRootBundleInput<TAccountSigner, TAccountPayer, TAccountState, TAccountRootBundle, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
    programAddress?: TProgramAddress;
}): RelayRootBundleInstruction<TProgramAddress, TAccountSigner, TAccountPayer, TAccountState, TAccountRootBundle, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
export type ParsedRelayRootBundleInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        signer: TAccountMetas[0];
        payer: TAccountMetas[1];
        state: TAccountMetas[2];
        rootBundle: TAccountMetas[3];
        systemProgram: TAccountMetas[4];
        eventAuthority: TAccountMetas[5];
        program: TAccountMetas[6];
    };
    data: RelayRootBundleInstructionData;
};
export declare function parseRelayRootBundleInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedRelayRootBundleInstruction<TProgram, TAccountMetas>;
