import { Program } from "@project-serum/anchor"; import { Order } from "@project-serum/serum/lib/market"; import { PublicKey, TransactionInstruction } from "@solana/web3.js"; import { EuroPrimitive } from "../"; /** * Create a TransactionInstruction for canceling a specific _order_ * * @param program - Anchor Program for Tokenized Euros * @param euroMetaKey - The address of the EuroMeta account * @param optionMintKey - The address of the option token traded on the Seurm Market * @param dexProgramId - The PublicKey of the DEX program * @param priceCurrencyKey - The address of the price currency mint * @param order - The Serum Order to cancel * @returns */ export declare const cancelOrderInstructionV2: (program: Program, euroMetaKey: PublicKey, optionMintKey: PublicKey, dexProgramId: PublicKey, priceCurrencyKey: PublicKey, order: Order) => Promise; /** * Generate a `TransactionInstruction` for canceling an open order by the set clientId * * @param program - Anchor Program for Tokenized Euros * @param euroMetaKey - The address of the EuroMeta account * @param optionMintKey - The address of the option token traded on the Seurm Market * @param dexProgramId - The PublicKey of the DEX program * @param priceCurrencyKey - The address of the price currency mint * @param order - The Serum Order to cancel * @returns */ export declare const cancelOrderByClientId: (program: Program, euroMetaKey: PublicKey, optionMintKey: PublicKey, dexProgramId: PublicKey, priceCurrencyKey: PublicKey, order: Order) => Promise; /** * Create an array of TransactionInstructions to cancel all of the wallet's orders for a given * OptionMarket and SerumMarket. * * NOTE: Current implementation does not account for Transaction packet size limitations. It * is on the client to slice the instructions to be within the limits. * * @param program - Anchor Program for Tokenized Euros * @param euroMetaKey - The address of the EuroMeta account * @param optionMintKey - The address of the option token traded on the Seurm Market * @param dexProgramId - The PublicKey of the DEX program * @param priceCurrencyKey - The address of the price currency mint * @returns */ export declare const cancelAllOpenOrders: (program: Program, euroMetaKey: PublicKey, optionMintKey: PublicKey, dexProgramId: PublicKey, priceCurrencyKey: PublicKey) => Promise; //# sourceMappingURL=cancelOrder.d.ts.map