import * as react_jsx_runtime from 'react/jsx-runtime'; import { C as ChartPeriod, a as ChartGranularity } from '../../chart-shared-Dd2boqdF.js'; interface ExpenseDataset { /** Expense category label, e.g. "Housing", "Food", "Transport" */ label: string; /** One value per data point, aligned to the months array */ data: number[]; } interface ExpenseBarChartData { /** Display labels, e.g. ["Jul", "Aug"] for monthly or ["Mar 8", "Mar 9"] for daily */ months: string[]; /** Optional ISO date strings per point — used for the tooltip title */ dates?: string[]; datasets: ExpenseDataset[]; } type ExpensePeriod = ChartPeriod; type ExpenseGranularity = ChartGranularity; interface ExpenseBarChartProps { /** Full dataset — sliced to the selected period */ expenseData: ExpenseBarChartData | null; title?: string; /** Show or hide the chart legend */ showLegend?: boolean; /** Show or hide X axis labels */ showXAxis?: boolean; /** Show or hide Y axis labels */ showYAxis?: boolean; /** Legend placement relative to chart */ legendPosition?: "top" | "bottom"; /** Default period selector value */ defaultPeriod?: ExpensePeriod; /** * Data granularity — controls available period buttons and slice counts. * "monthly" (default): shows 3M / 6M / 12M, slices by month count. * "daily": shows 1M / 3M / 6M / 12M, slices by day count (1M=30, 3M=90, etc.). */ granularity?: ExpenseGranularity; /** Chart canvas height in pixels */ height?: number; /** Width of the card in pixels */ width?: number | string; className?: string; /** Show skeleton loading state instead of the chart */ isLoading?: boolean; /** * Show the internal period selector buttons (3M / 6M / 12M). * Set to `false` when the chart is driven by an external period control. * Defaults to `true`. */ showPeriodSelector?: boolean; } declare function ExpenseBarChart({ expenseData, title, showLegend, showXAxis, showYAxis, legendPosition, defaultPeriod, granularity, height, width, className, isLoading, showPeriodSelector, }: ExpenseBarChartProps): react_jsx_runtime.JSX.Element; export { ExpenseBarChart, type ExpenseBarChartData, type ExpenseBarChartProps, type ExpenseDataset, type ExpenseGranularity, type ExpensePeriod };