import { XYChartData } from '../types/xy-chart.js'; /** * Generic function that evaluates a value or function with data context * @param valueOrFn Value or function that returns a value * @param data Data context to pass to the function if valueOrFn is a function * @returns The value directly or the result of calling the function with data */ export declare const evaluateWithData: (valueOrFn: T | ((data: unknown) => T), data: XYChartData) => T; /** * Helper function to evaluate optional attributes with default values * @param value The optional value or function * @param data Data context to pass to the function if value is a function * @param defaultValue The default value to use if value is undefined * @returns The evaluated value or the default value if undefined */ export declare const evaluateOptionalAttribute: (value: T | ((data: unknown) => T) | undefined, data: XYChartData, defaultValue: T) => T;