/**
 * 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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
import { FARMS_PROGRAM_ADDRESS } from "../programs";
export declare const UPDATE_SECOND_DELEGATED_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getUpdateSecondDelegatedAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
export type UpdateSecondDelegatedAuthorityInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountGlobalAdmin extends string | AccountMeta<string> = string, TAccountFarmState extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountNewSecondDelegatedAuthority extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
    TAccountGlobalAdmin extends string ? WritableSignerAccount<TAccountGlobalAdmin> & AccountSignerMeta<TAccountGlobalAdmin> : TAccountGlobalAdmin,
    TAccountFarmState extends string ? WritableAccount<TAccountFarmState> : TAccountFarmState,
    TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig,
    TAccountNewSecondDelegatedAuthority extends string ? ReadonlyAccount<TAccountNewSecondDelegatedAuthority> : TAccountNewSecondDelegatedAuthority,
    ...TRemainingAccounts
]>;
export type UpdateSecondDelegatedAuthorityInstructionData = {
    discriminator: ReadonlyUint8Array;
};
export type UpdateSecondDelegatedAuthorityInstructionDataArgs = {};
export declare function getUpdateSecondDelegatedAuthorityInstructionDataEncoder(): FixedSizeEncoder<UpdateSecondDelegatedAuthorityInstructionDataArgs>;
export declare function getUpdateSecondDelegatedAuthorityInstructionDataDecoder(): FixedSizeDecoder<UpdateSecondDelegatedAuthorityInstructionData>;
export declare function getUpdateSecondDelegatedAuthorityInstructionDataCodec(): FixedSizeCodec<UpdateSecondDelegatedAuthorityInstructionDataArgs, UpdateSecondDelegatedAuthorityInstructionData>;
export type UpdateSecondDelegatedAuthorityInput<TAccountGlobalAdmin extends string = string, TAccountFarmState extends string = string, TAccountGlobalConfig extends string = string, TAccountNewSecondDelegatedAuthority extends string = string> = {
    globalAdmin: TransactionSigner<TAccountGlobalAdmin>;
    farmState: Address<TAccountFarmState>;
    globalConfig: Address<TAccountGlobalConfig>;
    newSecondDelegatedAuthority: Address<TAccountNewSecondDelegatedAuthority>;
};
export declare function getUpdateSecondDelegatedAuthorityInstruction<TAccountGlobalAdmin extends string, TAccountFarmState extends string, TAccountGlobalConfig extends string, TAccountNewSecondDelegatedAuthority extends string, TProgramAddress extends Address = typeof FARMS_PROGRAM_ADDRESS>(input: UpdateSecondDelegatedAuthorityInput<TAccountGlobalAdmin, TAccountFarmState, TAccountGlobalConfig, TAccountNewSecondDelegatedAuthority>, config?: {
    programAddress?: TProgramAddress;
}): UpdateSecondDelegatedAuthorityInstruction<TProgramAddress, TAccountGlobalAdmin, TAccountFarmState, TAccountGlobalConfig, TAccountNewSecondDelegatedAuthority>;
export type ParsedUpdateSecondDelegatedAuthorityInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        globalAdmin: TAccountMetas[0];
        farmState: TAccountMetas[1];
        globalConfig: TAccountMetas[2];
        newSecondDelegatedAuthority: TAccountMetas[3];
    };
    data: UpdateSecondDelegatedAuthorityInstructionData;
};
export declare function parseUpdateSecondDelegatedAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedUpdateSecondDelegatedAuthorityInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=updateSecondDelegatedAuthority.d.ts.map