import { InsightSummary } from '../entity/insights/insightSummary'; import { Amount } from './amount'; import { COABalance } from './coaBalance/coaBalance'; export type BalanceKind = 'income' | 'expense'; export interface BalancesTimeseries { get balancesKind(): BalanceKind; get monthly(): COABalance[]; get order(): 'ascending_date' | 'descending_date'; get quarterly(): COABalance[]; get yearly(): COABalance[]; } export interface TrendTimeseries extends BalancesTimeseries { get averageMonthly(): Amount | undefined; get averageQuarterly(): Amount | undefined; get averageYearly(): Amount | undefined; get insights(): InsightSummary[]; }