import { type IPatternObject } from "../coloring/types.js"; /** * @internal */ export declare const LegendPosition: { [name: string]: PositionType; }; /** * @internal */ export declare const SupportedLegendPositions: PositionType[]; /** * @internal */ export interface ILegendOptions { enabled: boolean; toggleEnabled: boolean; position: PositionType; format: string; items: LegendOptionsItemType[]; responsive?: boolean | "autoPositionWithPopup"; enableBorderRadius?: boolean | ItemBorderRadiusPredicate; seriesMapper?: (visibleSeries: any) => any; } /** * @internal */ export type LegendOptionsItemType = ISeriesItemMetric | IHeatmapLegendItem; /** * @internal */ export interface IHeatmapLegendItem { type: string; range: IRange; isVisible?: boolean; color: string; legendIndex: number; anomaly?: boolean; } /** * @internal */ export interface IColorLegendItem { range: IRange; color: string; } /** * @internal */ export interface IGeoChartLegendData { colorData?: IColorLegendItem[]; sizeData?: number[]; } /** * @internal */ export interface IRange { from: number; to: number; } /** * @internal */ export declare const DEFAULT_LEGEND_CONFIG: { enabled: boolean; position: PositionType; }; /** * Category legend item for geo charts. * * @remarks * Represents a single item in the category legend, typically corresponding to * a segment value with its associated color and visibility state. * * @internal */ export interface IGeoCategoryLegendItem { type: string; name: string; uri: string; color?: string; legendIndex: number; isVisible: boolean; } /** * @deprecated Use IGeoCategoryLegendItem instead. * @internal */ export type IPushpinCategoryLegendItem = IGeoCategoryLegendItem; /** * TODO: rename * @internal */ export type PositionType = "left" | "right" | "top" | "bottom" | "auto"; /** * @internal */ export type ItemBorderRadiusPredicate = (item: any) => boolean; /** * @internal */ export type IColorLegendSize = "large" | "medium" | "small"; /** * @internal */ export declare const LEGEND_AXIS_INDICATOR = "legendAxisIndicator"; /** * @internal */ export declare const LEGEND_SEPARATOR = "legendSeparator"; /** * @internal */ export declare const LEGEND_GROUP = "legend-group"; /** * @internal */ export type ISeriesItem = ISeriesItemMetric | ISeriesItemAxisIndicator | ISeriesItemSeparator; /** * @internal */ export type ISeriesItemSeparator = { type: typeof LEGEND_SEPARATOR; }; /** * @internal */ export declare function isSeriesItemSeparator(item: ISeriesItem): item is ISeriesItemSeparator; /** * @internal */ export type ISeriesItemMetric = { type: string; isVisible?: boolean; name?: string; color?: string | IPatternObject; legendIndex: number; pointShape?: string; yAxis?: number; anomaly?: boolean; }; /** * @internal */ export declare function isSeriesItemMetric(item: ISeriesItem): item is ISeriesItemMetric; /** * @internal */ export type ISeriesItemAxisIndicator = { type: typeof LEGEND_AXIS_INDICATOR; data?: string[]; labelKey: string; }; /** * @internal */ export declare function isSeriesItemAxisIndicator(item: ISeriesItem): item is ISeriesItemAxisIndicator; /** * @internal */ export type ILegendGroup = Omit & { type: typeof LEGEND_GROUP; items: ISeriesItem[]; }; /** * @internal */ export declare function isLegendGroup(item: IGroupedSeriesItem): item is ILegendGroup; /** * @internal */ export type IGroupedSeriesItem = ISeriesItem | ILegendGroup; /** * @internal */ export type IGroupedSeries = IGroupedSeriesItem[]; //# sourceMappingURL=types.d.ts.map