/**
 * 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 } from '@solana/web3-v2.js';
import { SVM_SPOKE_PROGRAM_ADDRESS } from '../programs';
export declare const WRITE_INSTRUCTION_PARAMS_FRAGMENT_DISCRIMINATOR: Uint8Array;
export declare function getWriteInstructionParamsFragmentDiscriminatorBytes(): ReadonlyUint8Array;
export type WriteInstructionParamsFragmentInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountSigner extends string | IAccountMeta<string> = string, TAccountInstructionParams extends string | IAccountMeta<string> = string, TAccountSystemProgram extends string | IAccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
    TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & IAccountSignerMeta<TAccountSigner> : TAccountSigner,
    TAccountInstructionParams extends string ? WritableAccount<TAccountInstructionParams> : TAccountInstructionParams,
    TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
    ...TRemainingAccounts
]>;
export type WriteInstructionParamsFragmentInstructionData = {
    discriminator: ReadonlyUint8Array;
    offset: number;
    fragment: ReadonlyUint8Array;
};
export type WriteInstructionParamsFragmentInstructionDataArgs = {
    offset: number;
    fragment: ReadonlyUint8Array;
};
export declare function getWriteInstructionParamsFragmentInstructionDataEncoder(): Encoder<WriteInstructionParamsFragmentInstructionDataArgs>;
export declare function getWriteInstructionParamsFragmentInstructionDataDecoder(): Decoder<WriteInstructionParamsFragmentInstructionData>;
export declare function getWriteInstructionParamsFragmentInstructionDataCodec(): Codec<WriteInstructionParamsFragmentInstructionDataArgs, WriteInstructionParamsFragmentInstructionData>;
export type WriteInstructionParamsFragmentAsyncInput<TAccountSigner extends string = string, TAccountInstructionParams extends string = string, TAccountSystemProgram extends string = string> = {
    signer: TransactionSigner<TAccountSigner>;
    instructionParams?: Address<TAccountInstructionParams>;
    systemProgram?: Address<TAccountSystemProgram>;
    offset: WriteInstructionParamsFragmentInstructionDataArgs['offset'];
    fragment: WriteInstructionParamsFragmentInstructionDataArgs['fragment'];
};
export declare function getWriteInstructionParamsFragmentInstructionAsync<TAccountSigner extends string, TAccountInstructionParams extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: WriteInstructionParamsFragmentAsyncInput<TAccountSigner, TAccountInstructionParams, TAccountSystemProgram>, config?: {
    programAddress?: TProgramAddress;
}): Promise<WriteInstructionParamsFragmentInstruction<TProgramAddress, TAccountSigner, TAccountInstructionParams, TAccountSystemProgram>>;
export type WriteInstructionParamsFragmentInput<TAccountSigner extends string = string, TAccountInstructionParams extends string = string, TAccountSystemProgram extends string = string> = {
    signer: TransactionSigner<TAccountSigner>;
    instructionParams: Address<TAccountInstructionParams>;
    systemProgram?: Address<TAccountSystemProgram>;
    offset: WriteInstructionParamsFragmentInstructionDataArgs['offset'];
    fragment: WriteInstructionParamsFragmentInstructionDataArgs['fragment'];
};
export declare function getWriteInstructionParamsFragmentInstruction<TAccountSigner extends string, TAccountInstructionParams extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof SVM_SPOKE_PROGRAM_ADDRESS>(input: WriteInstructionParamsFragmentInput<TAccountSigner, TAccountInstructionParams, TAccountSystemProgram>, config?: {
    programAddress?: TProgramAddress;
}): WriteInstructionParamsFragmentInstruction<TProgramAddress, TAccountSigner, TAccountInstructionParams, TAccountSystemProgram>;
export type ParsedWriteInstructionParamsFragmentInstruction<TProgram extends string = typeof SVM_SPOKE_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        signer: TAccountMetas[0];
        instructionParams: TAccountMetas[1];
        systemProgram: TAccountMetas[2];
    };
    data: WriteInstructionParamsFragmentInstructionData;
};
export declare function parseWriteInstructionParamsFragmentInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedWriteInstructionParamsFragmentInstruction<TProgram, TAccountMetas>;
