import type { ChartTypeBits, IChartContext, IChartSourceHeader, IChartSourceTable, IUniverDataSet } from '@univerjs-pro/engine-chart'; import type { LocaleService } from '@univerjs/core'; import type { IChartDiagnostic } from '../chart-builder/types'; import type { ISheetChartSourceHeaderTitles } from '../models/types'; export interface IInitialSheetChartMapping { /** Inferred single layer along the Header axis, or an explicit empty configuration. */ header: IChartSourceHeader; isRowDirection: boolean; categoryIndexes: number[]; seriesIndexes: number[]; } export interface IInferInitialSheetChartSourceOptions { chartType: ChartTypeBits; isRowDirection: boolean; header?: IChartSourceHeader; sourceRowCount?: number; sourceColumnCount?: number; localeService?: LocaleService; categoryIndexes?: readonly number[]; seriesIndexes?: readonly number[]; seriesToCategory?: IChartContext['seriesToCategory']; } export interface IInitialSheetChartSourceResult { diagnostics: IChartDiagnostic[]; dataSet: IUniverDataSet; mapping: IInitialSheetChartMapping; } export interface IProjectInitialSheetChartSourceOptions { isRowDirection: boolean; header?: IChartSourceHeader; sourceRowCount?: number; sourceColumnCount?: number; localeService?: LocaleService; } export interface IInitialSheetChartProjection { diagnostics: IChartDiagnostic[]; dataSet: IUniverDataSet; header: IChartSourceHeader; } export declare function inferInitialSheetChartHeaderOffset(table: IChartSourceTable, isRowDirection: boolean): number | undefined; export declare function projectInitialSheetChartSource(table: IChartSourceTable, options: IProjectInitialSheetChartSourceOptions): IInitialSheetChartProjection; export declare function inferInitialSheetChartSource(table: IChartSourceTable, options: IInferInitialSheetChartSourceOptions): IInitialSheetChartSourceResult;