import BigNumber from 'bignumber.js'; import { Contracts } from './Contracts'; import { BigNumberable, CallOptions, Price, SendOptions, TradeResult, TxResult, address } from '../lib/types'; export declare function makeDeleverageTradeData(amount: BigNumberable, isBuy: boolean, allOrNothing: boolean): string; export declare class Deleveraging { private contracts; private deleveraging; constructor(contracts: Contracts); get address(): string; /** * Use eth_call to simulate the result of calling the trade() function. */ trade(maker: address, taker: address, price: Price, amount: BigNumber, isBuy: boolean, allOrNothing?: boolean, traderFlags?: BigNumber, options?: CallOptions): Promise; getDeleveragingTimelockSeconds(options?: CallOptions): Promise; getDeleveragingOperator(options?: CallOptions): Promise
; mark(account: address, options?: SendOptions): Promise; unmark(account: address, options?: SendOptions): Promise; /** * Set the privileged deleveraging operator. * * Must be called by the contract owner. */ setDeleveragingOperator(deleveragingOperator: address, options?: SendOptions): Promise; }