import ICollateralPool from '../models/ICollateralPool'; import EventEmitter from 'eventemitter3'; import { DefaultProvider } from '../../types'; import { BigNumber } from 'fathom-ethers'; export default interface IPositionService { emitter: EventEmitter; provider: DefaultProvider; chainId: number; openPosition(address: string, pool: ICollateralPool, collateral: string, fathomToken: string): Promise; openPositionERC20(address: string, pool: ICollateralPool, collateral: string, fathomToken: string): Promise; topUpPositionAndBorrow(address: string, pool: ICollateralPool, collateral: string, fathomToken: string, positionId: string): Promise; topUpPositionAndBorrowERC20(address: string, pool: ICollateralPool, collateral: string, fathomToken: string, positionId: string): Promise; topUpPosition(address: string, pool: ICollateralPool, collateral: string, positionId: string): Promise; topUpPositionERC20(address: string, pool: ICollateralPool, collateral: string, positionId: string): Promise; createProxyWallet(address: string): Promise; getProxyWallet(address: string): Promise; closePosition(positionId: string, pool: ICollateralPool, address: string, collateral: string): Promise; closePositionERC20(positionId: string, pool: ICollateralPool, address: string, collateral: string): Promise; approve(address: string, tokenAddress: string): Promise; approvalStatus(address: string, tokenAddress: string, collateral: string): Promise; balanceStableCoin(address: string): Promise; approveStableCoin(address: string): Promise; approvalStatusStableCoin(amount: string, address: string): Promise; partiallyClosePosition(positionId: string, pool: ICollateralPool, address: string, debt: string, collateralValue: string): Promise; partiallyClosePositionERC20(positionId: string, pool: ICollateralPool, address: string, debt: string, collateralValue: string): Promise; getDebtValue(debtShare: number, poolId: string): Promise; getPositionDebtCeiling(poolId: string): Promise; isWhitelisted(address: string): Promise; isDecentralizedMode(): Promise; setChainId(chainId: number): void; setProvider(provider: DefaultProvider): void; } //# sourceMappingURL=IPositionService.d.ts.map