import { Operation } from '.'; export interface NetSalesOptions { /** Net amount to withdraw */ netWithdrawal: number; /** Tax applied to capital gains obtained from selling securities */ capitalGainsTax: number; /** Date of the selling operation(s) */ date: Date; /** Security prices at the time of sale. Map of security symbol to price. */ prices: Record; } /** * Calculates sales needed to obtain a net withdrawal amount. * It may return more than one operation, if multiple symbols must be sold. * Symbols are sold in the order of their purchase operations, rather than date. * If you want to prioritize the sale of certain securities, * make sure their purchase operations appear first in the history array. * * Returns an array of operations containing the new sale(s). * @param history Operation history * @param options Options */ export declare function calculateSalesForNetWithdrawal(history: Operation[], options: NetSalesOptions): Operation[]; //# sourceMappingURL=net-sales.d.ts.map