// DTOs mirrored from the API (api/finance-dashboard).
export interface FinanceSummaryDto { totalIncome: number; totalExpenses: number; balance: number; }
export interface IncomeExpenseDto { income: number; expense: number; }
export interface BreakdownSliceDto { id: number; name_en: string; name_zh: string | null; amount: number; }

// View model: a chart slice with a display-ready bilingual label.
export interface PieSlice { id: number; label: string; amount: number; }

// Expense drill-down levels: Ministry -> Category Group -> Sub-Category.
export type DrillLevel = 'ministry' | 'group' | 'subcategory';

// One step in the drill breadcrumb. id is null for the root ('All').
export interface Crumb { level: DrillLevel; id: number | null; label: string; }
