import { ConditionItem, Data } from '../../../../types/src/am-chart';
import * as am5 from '@amcharts/amcharts5';
/**
 * Converts a color string (or undefined) to an am5.Color object.
 * Falls back to the chart default color if no color is provided.
 *
 * @param color - Color string to convert
 * @returns am5.Color instance
 */
export declare const convertToChartColor: (color?: string, isDark?: boolean) => am5.Color;
/**
 * Determines the appropriate chart color based on conditional ranges and the latest data value.
 *
 * This function sorts the supplied data array by a specified date field to identify the latest (most recent) record,
 * then checks the value of that record against an array of conditions. Each condition specifies a color and a min/max value range.
 * The function returns the color for the first condition whose min/max range contains the latest value.
 *
 * @param data - Array of data records where each record contains a value field and a date field.
 * @param dateFieldName - The property name in each data record representing the date. Used to sort chronologically.
 * @param conditions - Optional array of ConditionItem objects, each specifying min, max, and color.
 * @returns The matched color string if a condition matched the latest value; otherwise, null.
 */
export declare const getChartColorFromCondition: (data: Data, dateFieldName: string, conditions?: ConditionItem[]) => string | null;
