import { BN, Program, web3 } from "@project-serum/anchor"; import { EuroMeta, OptionType } from "../types"; import { EuroPrimitive } from "../euro_primitive"; /** * Close options by burning a option and writer tokens. This instruction can be used * to retrieve the underlying from the option before or after expiration. * * @param program - Tokenized Euros anchor Program * @param euroMetaKey - address for the EuroMeta data structure * @param euroMeta - The deserialized EuroMeta data * @param collateralDestination - Where the underlying collateral of the option should be returned * @param optionSource - The TokenAccount that holds the option tokens * @param writerSource - The TokenAccount that holds the writer tokens * @param amount - The amount of options to close * @param optionType - Whether the option is a CALL or a PUT. * @returns */ export declare const closeOptionsInstruction: (program: Program, euroMetaKey: web3.PublicKey, euroMeta: EuroMeta, collateralDestination: web3.PublicKey, optionSource: web3.PublicKey, writerSource: web3.PublicKey, amount: BN, optionType: OptionType) => Promise<{ instruction: web3.TransactionInstruction; }>; //# sourceMappingURL=closeOptions.d.ts.map