import { Fetch } from '../utils'; import { Account, Category, GlobalErrorHandler } from '..'; export declare class CategoryApi { fetchInstance: Fetch; constructor(endpoint: string, token: string, onError?: GlobalErrorHandler); addCategory: (category: Category) => Promise; getCategories: () => Promise; getDateRangeCategoryTotals: (startDate: number, endDate: number, accounts: Account[]) => Promise; getMonthlyCategoryTotals: (startDate: number, endDate: number, accounts?: Account[]) => Promise; removeCategory: (guid: string) => Promise; updateCategory: (category: Category) => Promise; }