import { Theme } from '@mui/material'; import { Category, DateRangeCategoryTotals, GoalsCopy } from '../../core'; import { DonutData } from '../../common/components/charts/Donut'; export interface CategoryTotal { guid: string; name: string; color: string; categoryTotals?: CategoryTotal[]; amount: number; } export interface SpendingData { categoryData: CategoryTotal[]; donutData: DonutData[]; totalAmount: number; } /** * Returns an object of type SpendingData containing a subset of category totals related to spending * Excludes Income and Transfers * * @param categories - Array of all categories * @param copy - Localized copy * @param theme - The current theme to use for colors * @param totals - And array of type DateRangeCategoryTotals */ export declare const getSpendingData: (categories: Category[], copy: GoalsCopy, // TODO: Replace after `Other` is added to SpendingCopy theme: Theme, totals: DateRangeCategoryTotals[]) => SpendingData; /** * Returns an object of type SpendingData containing a subset of category totals related to income * Only includes Income subcategories * * @param categories - Array of all categories * @param monthlyTotals - And array of type DateRangeCategoryTotals * @param colors - An array of color strings to use for income colors */ export declare const getIncomeData: (categories: Category[], monthlyTotals: DateRangeCategoryTotals[], colors: string[]) => SpendingData;