/**
 * 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 { YVAULTS_PROGRAM_ADDRESS } from '../programs';
export declare const WITHDRAW_FROM_TOPUP_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
export declare function getWithdrawFromTopupDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
export type WithdrawFromTopupInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountAdminAuthority extends string | AccountMeta<string> = string, TAccountTopupVault extends string | AccountMeta<string> = string, TAccountSystem extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[TAccountAdminAuthority extends string ? WritableSignerAccount<TAccountAdminAuthority> & AccountSignerMeta<TAccountAdminAuthority> : TAccountAdminAuthority, TAccountTopupVault extends string ? WritableAccount<TAccountTopupVault> : TAccountTopupVault, TAccountSystem extends string ? ReadonlyAccount<TAccountSystem> : TAccountSystem, ...TRemainingAccounts]>;
export type WithdrawFromTopupInstructionData = {
    discriminator: ReadonlyUint8Array;
    amount: bigint;
};
export type WithdrawFromTopupInstructionDataArgs = {
    amount: number | bigint;
};
export declare function getWithdrawFromTopupInstructionDataEncoder(): FixedSizeEncoder<WithdrawFromTopupInstructionDataArgs>;
export declare function getWithdrawFromTopupInstructionDataDecoder(): FixedSizeDecoder<WithdrawFromTopupInstructionData>;
export declare function getWithdrawFromTopupInstructionDataCodec(): FixedSizeCodec<WithdrawFromTopupInstructionDataArgs, WithdrawFromTopupInstructionData>;
export type WithdrawFromTopupInput<TAccountAdminAuthority extends string = string, TAccountTopupVault extends string = string, TAccountSystem extends string = string> = {
    adminAuthority: TransactionSigner<TAccountAdminAuthority>;
    topupVault: Address<TAccountTopupVault>;
    system: Address<TAccountSystem>;
    amount: WithdrawFromTopupInstructionDataArgs["amount"];
};
export declare function getWithdrawFromTopupInstruction<TAccountAdminAuthority extends string, TAccountTopupVault extends string, TAccountSystem extends string, TProgramAddress extends Address = typeof YVAULTS_PROGRAM_ADDRESS>(input: WithdrawFromTopupInput<TAccountAdminAuthority, TAccountTopupVault, TAccountSystem>, config?: {
    programAddress?: TProgramAddress;
}): WithdrawFromTopupInstruction<TProgramAddress, TAccountAdminAuthority, TAccountTopupVault, TAccountSystem>;
export type ParsedWithdrawFromTopupInstruction<TProgram extends string = typeof YVAULTS_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
    programAddress: Address<TProgram>;
    accounts: {
        adminAuthority: TAccountMetas[0];
        topupVault: TAccountMetas[1];
        system: TAccountMetas[2];
    };
    data: WithdrawFromTopupInstructionData;
};
export declare function parseWithdrawFromTopupInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedWithdrawFromTopupInstruction<TProgram, TAccountMetas>;
//# sourceMappingURL=withdrawFromTopup.d.ts.map