/**
 * 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 Option, type OptionOrNullable, type ReadonlyAccount, type ReadonlySignerAccount, type TransactionSigner, type WritableAccount } from '@solana/kit';
import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs';
export declare const UPDATE_TRANSFER_HOOK_DISCRIMINATOR = 36;
export declare function getUpdateTransferHookDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export declare const UPDATE_TRANSFER_HOOK_TRANSFER_HOOK_DISCRIMINATOR = 1;
export declare function getUpdateTransferHookTransferHookDiscriminatorBytes(): import("@solana/kit").ReadonlyUint8Array;
export type UpdateTransferHookInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMint extends string | IAccountMeta<string> = string, TAccountAuthority extends string | IAccountMeta<string> = string, TRemainingAccounts extends readonly IAccountMeta<string>[] = []> = IInstruction<TProgram> & IInstructionWithData<Uint8Array> & IInstructionWithAccounts<[
    TAccountMint extends string ? WritableAccount<TAccountMint> : TAccountMint,
    TAccountAuthority extends string ? ReadonlyAccount<TAccountAuthority> : TAccountAuthority,
    ...TRemainingAccounts
]>;
export type UpdateTransferHookInstructionData = {
    discriminator: number;
    transferHookDiscriminator: number;
    /** The program id that performs logic during transfers */
    programId: Option<Address>;
};
export type UpdateTransferHookInstructionDataArgs = {
    /** The program id that performs logic during transfers */
    programId: OptionOrNullable<Address>;
};
export declare function getUpdateTransferHookInstructionDataEncoder(): Encoder<UpdateTransferHookInstructionDataArgs>;
export declare function getUpdateTransferHookInstructionDataDecoder(): Decoder<UpdateTransferHookInstructionData>;
export declare function getUpdateTransferHookInstructionDataCodec(): Codec<UpdateTransferHookInstructionDataArgs, UpdateTransferHookInstructionData>;
export type UpdateTransferHookInput<TAccountMint extends string = string, TAccountAuthority extends string = string> = {
    /** The mint. */
    mint: Address<TAccountMint>;
    /** The transfer hook authority. */
    authority: Address<TAccountAuthority> | TransactionSigner<TAccountAuthority>;
    programId: UpdateTransferHookInstructionDataArgs['programId'];
    multiSigners?: Array<TransactionSigner>;
};
export declare function getUpdateTransferHookInstruction<TAccountMint extends string, TAccountAuthority extends string, TProgramAddress extends Address = typeof TOKEN_2022_PROGRAM_ADDRESS>(input: UpdateTransferHookInput<TAccountMint, TAccountAuthority>, config?: {
    programAddress?: TProgramAddress;
}): UpdateTransferHookInstruction<TProgramAddress, TAccountMint, (typeof input)['authority'] extends TransactionSigner<TAccountAuthority> ? ReadonlySignerAccount<TAccountAuthority> & IAccountSignerMeta<TAccountAuthority> : TAccountAuthority>;
export type ParsedUpdateTransferHookInstruction<TProgram extends string = typeof TOKEN_2022_PROGRAM_ADDRESS, TAccountMetas extends readonly IAccountMeta[] = readonly IAccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        /** The mint. */
        mint: TAccountMetas[0];
        /** The transfer hook authority. */
        authority: TAccountMetas[1];
    };
    data: UpdateTransferHookInstructionData;
};
export declare function parseUpdateTransferHookInstruction<TProgram extends string, TAccountMetas extends readonly IAccountMeta[]>(instruction: IInstruction<TProgram> & IInstructionWithAccounts<TAccountMetas> & IInstructionWithData<Uint8Array>): ParsedUpdateTransferHookInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=updateTransferHook.d.ts.map