import { RefObject } from 'react'; import { Typography, TooltipMode, Position } from '@keen.io/ui-core'; import { IconType } from '@keen.io/icons'; import { colors } from '@keen.io/colors'; import { Formatter, FormatFunction } from '@keen.io/charts-utils'; export declare type Dimension = { width: number; height: number; }; export declare type Margins = { top: number; bottom: number; left: number; right: number; }; export declare type Line = { x1: number; y1: number; x2: number; y2: number; stroke?: number; }; export declare type Tick = { text?: string | number; size: number; x: number; y: number; }; export declare enum Orientation { VERTICAL = "vertical", HORIZONTAL = "horizontal" } export declare type Labels = { enabled: boolean; typography: Typography; radiusAngle?: number; }; export declare type Tooltip = { enabled: boolean; mode: TooltipMode; labels: { typography: Typography; }; values: { typography: Typography; }; }; export declare type AxisTitle = { alignment?: Position | 'center'; typography?: Typography; padding: number; }; export declare type Axis = { enabled: boolean; tickSize: number; tickPadding: number; padding: number; stroke?: number; color?: string; labels?: Labels; title: AxisTitle; }; export declare type Grid = { enabled: boolean; color: string; }; export declare type ZeroIntersection = { color: string; }; export declare type Icon = { color: string; type: IconType; height?: number; width?: number; }; export declare type Metric = { value: { typography: Typography; }; prefix: { typography: Typography; }; suffix: { typography: Typography; }; icon?: { enabled: boolean; position: 'top' | 'center' | 'bottom'; margins: Margins; style: 'solid' | 'regular'; type: IconType; }; excerpt: { icons: { increase: Icon; decrease: Icon; }; backgroundColor: string; typography: Typography; }; }; export declare type Bar = { values: { typography: Typography; }; }; declare type BadgeVariant = keyof typeof colors; export declare type Funnel = { header: { value: { enabled: boolean; typography: Typography; }; title: { typography: Typography; }; badge: { enabled: boolean; variant?: BadgeVariant; typography: Typography; }; backgroundColor: string; }; step: { backgroundColor: string; }; }; export declare type Choropleth = { map: { stroke: string; }; graticule: Grid; sphere: { enabled: boolean; backgroundColor: string; }; }; export declare type Donut = { labels: { enabled: boolean; typography: Typography; }; total: { enabled: boolean; label: { typography: Typography; }; value: { typography: Typography; }; }; }; export declare type Pie = { labels: { enabled: boolean; typography: Typography; }; }; export declare type Gauge = { labels: { enabled: boolean; typography: Typography; }; border: { backgroundColor: string; }; total: { enabled: boolean; typography: Typography; }; }; export declare type Table = { mainColor: string; header: { typography: Typography; }; body: { typography: Typography; }; }; export declare type LineChartTheme = { markRadius: number; strokeWidth: number; }; export declare type HoverBarType = 'dark' | 'light'; export declare type HoverBarSettings = { enabled: boolean; type: HoverBarType; }; export declare type Theme = { colors: string[]; funnel: Funnel; choropleth: Choropleth; bar: Bar; line: LineChartTheme; metric: Metric; donut: Donut; pie: Pie; gauge: Gauge; table: Table; tooltip: Tooltip; axisX: Axis; axisY: Axis; gridX: Grid; gridY: Grid; zeroIntersection: ZeroIntersection; hoverBar: HoverBarSettings; }; export declare type CommonChartSettings = { theme?: Theme; svgDimensions?: Dimension; margins?: Margins; portalContainer?: RefObject; }; export declare type TooltipState = { visible: boolean; selectors: { selector: DataSelector; color: string; }[]; x: number; y: number; }; export declare type Motion = { enabled: boolean; }; export declare type DataSelector = (number | string)[]; export declare type LabelRotation = { anchor: string; radius: number; translateX: number; translateY: number; }; export declare type GroupMode = 'grouped' | 'stacked'; export declare type StackMode = 'normal' | 'percent'; export declare type ItemData = { label: string; value: string; change?: string; }; export declare type TooltipSettings = { formatValue?: Formatter; formatTime?: FormatFunction; }; export declare type CircularChartValueMode = 'percentage' | 'numeric'; export {};