import { Address, GetAccountInfoApi, GetMultipleAccountsApi, Rpc } from "@solana/kit";
import BN from "bn.js";
import * as types from "../types";
export interface ReserveFields {
    version: BN;
    lastUpdate: types.LastUpdateFields;
    lendingMarket: Address;
    farmCollateral: Address;
    farmDebt: Address;
    liquidity: types.ReserveLiquidityFields;
    reserveLiquidityPadding: Array<BN>;
    collateral: types.ReserveCollateralFields;
    reserveCollateralPadding: Array<BN>;
    config: types.ReserveConfigFields;
    configPadding: Array<BN>;
    borrowedAmountOutsideElevationGroup: BN;
    borrowedAmountsAgainstThisReserveInElevationGroups: Array<BN>;
    padding: Array<BN>;
}
export interface ReserveJSON {
    version: string;
    lastUpdate: types.LastUpdateJSON;
    lendingMarket: string;
    farmCollateral: string;
    farmDebt: string;
    liquidity: types.ReserveLiquidityJSON;
    reserveLiquidityPadding: Array<string>;
    collateral: types.ReserveCollateralJSON;
    reserveCollateralPadding: Array<string>;
    config: types.ReserveConfigJSON;
    configPadding: Array<string>;
    borrowedAmountOutsideElevationGroup: string;
    borrowedAmountsAgainstThisReserveInElevationGroups: Array<string>;
    padding: Array<string>;
}
export declare class Reserve {
    readonly version: BN;
    readonly lastUpdate: types.LastUpdate;
    readonly lendingMarket: Address;
    readonly farmCollateral: Address;
    readonly farmDebt: Address;
    readonly liquidity: types.ReserveLiquidity;
    readonly reserveLiquidityPadding: Array<BN>;
    readonly collateral: types.ReserveCollateral;
    readonly reserveCollateralPadding: Array<BN>;
    readonly config: types.ReserveConfig;
    readonly configPadding: Array<BN>;
    readonly borrowedAmountOutsideElevationGroup: BN;
    readonly borrowedAmountsAgainstThisReserveInElevationGroups: Array<BN>;
    readonly padding: Array<BN>;
    static readonly discriminator: Buffer<ArrayBuffer>;
    static readonly layout: import("buffer-layout").Layout<Reserve>;
    constructor(fields: ReserveFields);
    static fetch(rpc: Rpc<GetAccountInfoApi>, address: Address, programId?: Address): Promise<Reserve | null>;
    static fetchMultiple(rpc: Rpc<GetMultipleAccountsApi>, addresses: Address[], programId?: Address): Promise<Array<Reserve | null>>;
    static decode(data: Buffer): Reserve;
    toJSON(): ReserveJSON;
    static fromJSON(obj: ReserveJSON): Reserve;
}
//# sourceMappingURL=Reserve.d.ts.map