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