export declare class UserAction { private userId; private stockCache; private holdingsCache; constructor(userId: string); BuySharesReturnSharePrice(toSpend: number, sym: string): Promise; SellShares(n: number, sym: string): Promise; SellAllShares(sym: string): Promise; CacheMarketValues(): Promise>; /** * Refreshes both caches */ RefreshUserCache(): Promise>; /** * alias for the RefreshUserCache() command */ SetUserCache(): Promise>; /** * Returns a map of symbols and their market prices. Uses iex API. * @param records */ private static SymbolValueMapFromDocument; /** * Must SetCache() before use */ NetAssetWorth(): number; FreeCapital(): Promise; } interface ITradeShares { success: boolean; price: number; } interface ISellAllShares extends ITradeShares { holding: number; } export {}; //# sourceMappingURL=UserAction.d.ts.map