import { LegendSettings, TextSettings } from '@keen.io/widgets'; import { CardSettings, Layout, PER_PAGE_OPTIONS } from '@keen.io/ui-core'; import { IconType } from '@keen.io/icons'; import { IconStyles } from './constants'; export declare type ChartCustomizationSettings = { formatValue?: string | null; verticalGrid?: boolean; horizontalGrid?: boolean; layout?: Layout; xAxisTitle?: string; yAxisTitle?: string; funnelPercentages?: boolean; valueMode?: CircularChartValueMode; columnsNamesMapping?: Record; formatTableColumns?: Record; iconEnabled?: boolean; iconStyle?: IconStyles; iconType?: IconType; rowsSelection?: boolean; maxValue?: number | 'auto'; minValue?: number | 'auto'; pagination?: boolean; rowsPerPage?: typeof PER_PAGE_OPTIONS[number]; }; export declare type WidgetCustomizationSettings = { title: TextSettings; subtitle: TextSettings; legend: Partial; card: Partial; }; export declare type HiddenOptions = { card: boolean; }; export declare type ComponentSettings = { isDisabled: string; hiddenOptions?: HiddenOptions; }; export declare type SectionsConfiguration = { formatValues?: { isNotAvailable: string; isDisabled: string; }; headingSettings?: { isDisabled: string; }; componentSettings?: ComponentSettings; }; export declare type SerializedSettings = { chart: ChartCustomizationSettings; widget: WidgetCustomizationSettings; }; export declare type WidgetTransform = { serializeIn: (settings: S) => ChartCustomizationSettings; serializeOut: (settings: ChartCustomizationSettings) => Partial; }; export declare type NumericFormatter = { variableType?: string | 'datetime' | 'number'; prefix?: string; suffix?: string; precision?: string; operation?: 'add' | 'subtract' | 'multiply' | 'divide'; value?: string; separator?: boolean; }; export declare type DateTimeFormatter = { variableType?: string | 'datetime' | 'number'; prefix?: string; suffix?: string; dateFormat?: string; timeFormat?: string; }; export declare type StringFormatter = { variableType?: string | 'datetime' | 'number'; prefix?: string; suffix?: string; }; export declare type FormatterSettings = NumericFormatter | DateTimeFormatter | StringFormatter; export declare type CircularChartValueMode = 'percentage' | 'numeric';