import { Theme } from '@mui/material'; import { Category, DateRangeCategoryTotals, DetailedCategory, DetailedCategoryWithTransactions, MonthlyCategoryTotals, Transaction, CategoryCopy, CategoryTotal } from '../types'; /** * Resolve the localized display name for a category. * * Default (MX-supplied) categories arrive from the API with fixed English * names, but localized copy for them is delivered via CategoryCopy * `default_categories` (keyed by category guid). User-created categories have no * localized copy and legitimately fall back to their API name. * @param category - The category to resolve a name for * @param copy - Category copy containing localized default category names */ export declare const getLocalizedCategoryName: (category: Category, copy: CategoryCopy) => string; /** * Augment categories * @param categories - Categories to augment * @param monthlyCategoryTotals - Monthly category totals * @param currentCategoryTotals - Current month category totals * @param copy - Category copy */ export declare const augmentCategories: (categories: Category[], copy: CategoryCopy, currentCategoryTotals: DateRangeCategoryTotals[], monthlyCategoryTotals: MonthlyCategoryTotals[]) => DetailedCategory[]; export declare const getCategoryColor: (guid: string, theme: Theme) => string; export declare const getCategoryIcon: (guid: string) => string | undefined; /** * get the transactions belonging to parent categories * @param detailedCategories - detailed categories from the category store * @param transactions - sortedTransactions from the transaction store */ export declare const getDetailedCategoryTransactions: (detailedCategories: DetailedCategory[], transactions: Transaction[]) => DetailedCategoryWithTransactions[]; export declare const findCategory: (categories: Category[], categoryGuid: string | undefined) => Category | undefined; export declare const findDetailedCategory: (detailedCategories: DetailedCategory[], guid: string | undefined) => DetailedCategory | undefined; export declare const findDetailedSubCategory: (detailedCategories: DetailedCategory[], guid: string | undefined) => DetailedCategory | undefined; export declare const findCategoryTotalsByParent: (categories: Category[], dateRangeTotals: DateRangeCategoryTotals[]) => CategoryTotal[]; export declare const isIncome: (categories: Category[], guid: string) => boolean;