//#region src/react/charts/utils.d.ts /** * Converts a value to a chart-compatible type. * Handles BigInt conversion (Arrow can return BigInt64Array values). * Handles Date objects by converting to timestamps. */ declare function toChartValue(value: unknown): string | number; /** * Converts an array of values to chart-compatible types. */ declare function toChartArray(data: unknown[]): (string | number)[]; /** * Formats a field name into a human-readable label. * Handles camelCase, snake_case, acronyms, and ALL_CAPS. * E.g., "totalSpend" -> "Total Spend", "user_name" -> "User Name", * "userID" -> "User Id", "TOTAL_SPEND" -> "Total Spend" */ declare function formatLabel(field: string): string; /** * Truncates a label to a maximum length with ellipsis. */ declare function truncateLabel(value: string, maxLength?: number): string; /** * Creates time-series data pairs for ECharts. */ declare function createTimeSeriesData(xData: (string | number)[], yData: (string | number)[]): [string | number, string | number][]; /** * Sorts time-series data in ascending chronological order. */ declare function sortTimeSeriesAscending(xData: (string | number)[], yDataMap: Record, yFields: string[]): { xData: (string | number)[]; yDataMap: Record; }; //#endregion export { createTimeSeriesData, formatLabel, sortTimeSeriesAscending, toChartArray, toChartValue, truncateLabel }; //# sourceMappingURL=utils.d.ts.map