import { MonetaryAmount } from "@interlay/monetary-js";
import { ApiPromise } from "@polkadot/api";
import { InterbtcPrimitivesVaultId } from "@polkadot/types/lookup";
import Big from "big.js";
import { AssetRegistryAPI, OracleAPI, SystemAPI } from "../parachain";
import { CollateralCurrencyExt, WrappedCurrency } from "./currency";
export declare enum VaultStatusExt {
    Active = 0,
    Inactive = 1,
    Liquidated = 2
}
export declare class VaultExt {
    private api;
    private oracleAPI;
    private systemAPI;
    private assetRegistryAPI;
    backingCollateral: MonetaryAmount<CollateralCurrencyExt>;
    id: InterbtcPrimitivesVaultId;
    status: VaultStatusExt;
    bannedUntil: number | undefined;
    toBeIssuedTokens: MonetaryAmount<WrappedCurrency>;
    issuedTokens: MonetaryAmount<WrappedCurrency>;
    toBeRedeemedTokens: MonetaryAmount<WrappedCurrency>;
    toBeReplacedTokens: MonetaryAmount<WrappedCurrency>;
    replaceCollateral: MonetaryAmount<CollateralCurrencyExt>;
    liquidatedCollateral: MonetaryAmount<CollateralCurrencyExt>;
    secureCollateralThreshold: Big;
    constructor(api: ApiPromise, oracleAPI: OracleAPI, systemAPI: SystemAPI, assetRegistryAPI: AssetRegistryAPI, backingCollateral: MonetaryAmount<CollateralCurrencyExt>, id: InterbtcPrimitivesVaultId, status: VaultStatusExt, bannedUntil: number | undefined, toBeIssuedTokens: MonetaryAmount<WrappedCurrency>, issuedTokens: MonetaryAmount<WrappedCurrency>, toBeRedeemedTokens: MonetaryAmount<WrappedCurrency>, toBeReplacedTokens: MonetaryAmount<WrappedCurrency>, replaceCollateral: MonetaryAmount<CollateralCurrencyExt>, liquidatedCollateral: MonetaryAmount<CollateralCurrencyExt>, secureCollateralThreshold: Big);
    getRedeemableTokens(): MonetaryAmount<WrappedCurrency>;
    getIssuableTokens(): Promise<MonetaryAmount<WrappedCurrency>>;
    isBanned(): Promise<boolean>;
    getBackedTokens(): MonetaryAmount<WrappedCurrency>;
    getFreeCollateral(): Promise<MonetaryAmount<CollateralCurrencyExt>>;
    getUsedCollateral(): Promise<MonetaryAmount<CollateralCurrencyExt>>;
    getSecureCollateralThreshold(): Big;
    computeBackingCollateral(nonce?: number): Promise<MonetaryAmount<CollateralCurrencyExt>>;
    getStakingPoolNonce(): Promise<number>;
}
export interface SystemVaultExt {
    toBeIssuedTokens: MonetaryAmount<WrappedCurrency>;
    issuedTokens: MonetaryAmount<WrappedCurrency>;
    toBeRedeemedTokens: MonetaryAmount<WrappedCurrency>;
    collateral: MonetaryAmount<CollateralCurrencyExt>;
    currencyPair: {
        collateralCurrency: CollateralCurrencyExt;
        wrappedCurrency: WrappedCurrency;
    };
}
