import type { OfficeChartModel, OfficeChartSeries, OfficeChartType, OfficeDataLabels } from './officeChartTypes'; /** Office 图表没有显式配色时使用的默认颜色序列。 */ export declare const DEFAULT_COLORS: string[]; /** Office 图表缺少字体信息时使用的默认字体回退栈。 */ export declare const OFFICE_FONT_FAMILY = "\"Microsoft YaHei\", \"PingFang SC\", \"Noto Sans CJK SC\", Arial, sans-serif"; /** Office 图表文字使用的默认颜色和字体样式。 */ export declare const OFFICE_TEXT_STYLE: { color: string; fontFamily: string; }; /** 转义来自 Office 文档的 Tooltip 文本,避免被当作 HTML 解析。 */ export declare function escapeTooltipHtml(value: string): string; /** 按所有系列的维度最大值生成雷达轴范围。 */ export declare function buildRadarIndicators(categories: string[], series: OfficeChartSeries[]): { name: string; max: number; }[]; /** 优先使用系列显式颜色,否则按索引选用默认配色。 */ export declare function resolveSeriesColor(series: OfficeChartSeries, index: number): string; /** 返回显式分类,缺失时按最长系列生成一基序号。 */ export declare function resolveCategories(chart: OfficeChartModel): string[]; /** 将 Office 图表类型映射为 ECharts 系列类型。 */ export declare function normalizeSeriesType(type: OfficeChartType): "bar" | "line" | "pie" | "scatter" | "radar"; /** 去除地图区域名称中的行政区后缀。 */ export declare function sanitizeMapRegionName(name: string): string; /** 将玫瑰图半径约束到预览容器的可见范围。 */ export declare function scaleRoseRadius(radius: [string, string] | undefined): [string, string] | undefined; /** 生成各图表变体共用的图例配置。 */ export declare function buildLegend(chart: OfficeChartModel, itemCount?: number): { bottom: number; type: "scroll"; itemWidth: number; itemHeight: number; textStyle: { color: string; fontFamily: string; readonly fontSize?: number | undefined; readonly fontStyle?: "normal" | "italic" | "oblique" | undefined; readonly fontWeight?: number | "bold" | "normal" | "bolder" | "lighter" | undefined; }; } | { left: number; top: number; orient: "vertical"; type: "scroll"; itemWidth: number; itemHeight: number; textStyle: { color: string; fontFamily: string; readonly fontSize?: number | undefined; readonly fontStyle?: "normal" | "italic" | "oblique" | undefined; readonly fontWeight?: number | "bold" | "normal" | "bolder" | "lighter" | undefined; }; } | { right: number; top: number; orient: "vertical"; type: "scroll"; itemWidth: number; itemHeight: number; textStyle: { color: string; fontFamily: string; readonly fontSize?: number | undefined; readonly fontStyle?: "normal" | "italic" | "oblique" | undefined; readonly fontWeight?: number | "bold" | "normal" | "bolder" | "lighter" | undefined; }; } | { top: number; type: "scroll"; itemWidth: number; itemHeight: number; textStyle: { color: string; fontFamily: string; readonly fontSize?: number | undefined; readonly fontStyle?: "normal" | "italic" | "oblique" | undefined; readonly fontWeight?: number | "bold" | "normal" | "bolder" | "lighter" | undefined; }; } | undefined; /** 根据标题、图例和坐标轴可见性计算笛卡尔绘图区边距。 */ export declare function buildChartGrid(chart: OfficeChartModel): { left: number; right: number; top: number; bottom: number; containLabel: boolean; }; /** 生成各图表变体共用的标题配置。 */ export declare function buildOfficeTitle(chart: OfficeChartModel): { text: string; left: string; top: number; textStyle: { fontSize: number; fontWeight: number; color: string; fontFamily: string; }; } | undefined; /** 将 Office 饼图起始角转换为 ECharts 角度。 */ export declare function resolveOfficePieStartAngle(chart: OfficeChartModel): number; /** 返回雷达图显式起始角或 Office 默认角度。 */ export declare function resolveOfficeRadarStartAngle(chart: OfficeChartModel): number; /** 根据图例位置确定雷达图显示半径。 */ export declare function resolveOfficeRadarRadius(chart: OfficeChartModel): string; /** 按 Office 的顺时针轴顺序重排雷达维度。 */ export declare function reorderRadarAxes(items: T[]): T[]; /** 根据标题和图例位置确定雷达图中心。 */ export declare function resolveOfficeRadarCenter(chart: OfficeChartModel): [string, string]; /** 将 Office 以柱宽为基准的分类间距换算为 ECharts 分类带宽百分比。 */ export declare function resolveBarCategoryGap(gapWidth: number | undefined, seriesCount: number, overlap?: number): string | undefined; /** 按标签显示规则组合系列、分类、数值和百分比。 */ export declare function buildDataLabelFormatter(labels: OfficeDataLabels | undefined, categories: string[]): (params: unknown) => string; /** 合并图表级与系列级规则,判断是否显示数据标签。 */ export declare function shouldShowDataLabels(labels: OfficeDataLabels | undefined, chartShowDataLabels?: boolean): boolean; /** 生成笛卡尔图表的数据标签配置。 */ export declare function buildCartesianDataLabelConfig(labels: OfficeDataLabels | undefined, chartShowDataLabels: boolean | undefined, categories: string[], horizontal?: boolean): { show: boolean; position: string; formatter: (params: unknown) => string; color: string; fontFamily: string; }; /** 生成饼图与环形图的数据标签配置。 */ export declare function buildPieDataLabelConfig(labels: OfficeDataLabels | undefined, showDataLabels?: boolean): { show: boolean; position: "inside" | "outside"; formatter: (params: unknown) => string; color: string; fontSize: number; fontFamily: string; }; /** 合并数据点、系列和默认调色板得到扇区样式。 */ export declare function buildPieItemStyle(series: OfficeChartSeries | undefined, index: number, palette: string[]): Record;