/**
 * 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 ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit";
import { FARMS_PROGRAM_ADDRESS } from "../programs";
export declare const CLOSE_EMPTY_USER_STATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getCloseEmptyUserStateDiscriminatorBytes(): ReadonlyUint8Array;
export type CloseEmptyUserStateInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountSigner extends string | AccountMeta<string> = string, TAccountUserState extends string | AccountMeta<string> = string, TAccountFarmState extends string | AccountMeta<string> = string, TAccountRentReceiver extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
    TAccountSigner extends string ? ReadonlySignerAccount<TAccountSigner> & AccountSignerMeta<TAccountSigner> : TAccountSigner,
    TAccountUserState extends string ? WritableAccount<TAccountUserState> : TAccountUserState,
    TAccountFarmState extends string ? ReadonlyAccount<TAccountFarmState> : TAccountFarmState,
    TAccountRentReceiver extends string ? WritableAccount<TAccountRentReceiver> : TAccountRentReceiver,
    TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
    ...TRemainingAccounts
]>;
export type CloseEmptyUserStateInstructionData = {
    discriminator: ReadonlyUint8Array;
};
export type CloseEmptyUserStateInstructionDataArgs = {};
export declare function getCloseEmptyUserStateInstructionDataEncoder(): FixedSizeEncoder<CloseEmptyUserStateInstructionDataArgs>;
export declare function getCloseEmptyUserStateInstructionDataDecoder(): FixedSizeDecoder<CloseEmptyUserStateInstructionData>;
export declare function getCloseEmptyUserStateInstructionDataCodec(): FixedSizeCodec<CloseEmptyUserStateInstructionDataArgs, CloseEmptyUserStateInstructionData>;
export type CloseEmptyUserStateInput<TAccountSigner extends string = string, TAccountUserState extends string = string, TAccountFarmState extends string = string, TAccountRentReceiver extends string = string, TAccountSystemProgram extends string = string> = {
    /**
     * The account that signs the transaction
     * - Non-delegated: user signs
     * - Delegated: delegated authority signs
     */
    signer: TransactionSigner<TAccountSigner>;
    userState: Address<TAccountUserState>;
    /** The farm state account for validation */
    farmState: Address<TAccountFarmState>;
    /**
     * The account that receives the rent
     * - Non-delegated: user receives the rent
     * - Delegated: farm admin receives the rent
     */
    rentReceiver: Address<TAccountRentReceiver>;
    systemProgram?: Address<TAccountSystemProgram>;
};
export declare function getCloseEmptyUserStateInstruction<TAccountSigner extends string, TAccountUserState extends string, TAccountFarmState extends string, TAccountRentReceiver extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof FARMS_PROGRAM_ADDRESS>(input: CloseEmptyUserStateInput<TAccountSigner, TAccountUserState, TAccountFarmState, TAccountRentReceiver, TAccountSystemProgram>, config?: {
    programAddress?: TProgramAddress;
}): CloseEmptyUserStateInstruction<TProgramAddress, TAccountSigner, TAccountUserState, TAccountFarmState, TAccountRentReceiver, TAccountSystemProgram>;
export type ParsedCloseEmptyUserStateInstruction<TProgram extends string = typeof FARMS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        /**
         * The account that signs the transaction
         * - Non-delegated: user signs
         * - Delegated: delegated authority signs
         */
        signer: TAccountMetas[0];
        userState: TAccountMetas[1];
        /** The farm state account for validation */
        farmState: TAccountMetas[2];
        /**
         * The account that receives the rent
         * - Non-delegated: user receives the rent
         * - Delegated: farm admin receives the rent
         */
        rentReceiver: TAccountMetas[3];
        systemProgram: TAccountMetas[4];
    };
    data: CloseEmptyUserStateInstructionData;
};
export declare function parseCloseEmptyUserStateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseEmptyUserStateInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=closeEmptyUserState.d.ts.map