import { BalanceAmountValues, Milliseconds, PriceFloat } from '..'; /** HistoricalValue stores balances at a single unit in time. */ export interface HistoricalValue { totalValue: PriceFloat; values: BalanceAmountValues; timestamp: Milliseconds; } export interface TimeMetadata { /** The minute of the timestamp, in UTC. */ __minute: number; /** The hour of the timestamp, in UTC. */ __hour: number; /** The day of the week of the timestamp, in UTC. */ __dayOfWeek: number; /** The day of the month of the timestamp, in UTC. */ __dayOfMonth: number; } /** HistoricalValueWithMetadata is stored in the database and used for queries. */ export declare type HistoricalValueWithMetadata = HistoricalValue & TimeMetadata; /** HistoricalValues stores balances for timestamps in ascending order. */ export interface HistoricalValues { values: HistoricalValue[]; } /** MultipleHistoricalValues maps IDs to objects containing lists of historical values. Backend will ensure timestamps overlap. */ export interface MultipleHistoricalValues { [id: string]: HistoricalValues; }