import type { IChartSourceHeader, IUniverDataSet } from '@univerjs-pro/engine-chart'; import type { LocaleService } from '@univerjs/core'; import type { IChartDiagnostic } from '../chart-builder/types'; import type { IChartSourceRangeItem, ISheetChartSourceHeaderTitle, ISheetChartSourceHeaderTitles, ISheetChartSourceRanges } from '../models/types'; import type { ISheetChartSourceTable } from './sheet-chart-source-table'; export interface INormalizedChartSourceHeaderResult { header: IChartSourceHeader; diagnostics: IChartDiagnostic[]; } /** Read one physical vector without expanding a sparse collection into a dense array. */ export declare function getChartSourceHeaderTitle(titles: ISheetChartSourceHeaderTitles | undefined, index: number): ISheetChartSourceHeaderTitle | undefined; export declare function getChartSourceHeaderTitleEntries(titles: ISheetChartSourceHeaderTitles | undefined): (readonly [number, ISheetChartSourceHeaderTitle | undefined])[]; export declare function isChartSourceHeaderTitle(value: unknown): value is ISheetChartSourceHeaderTitle; export declare function normalizeMultiChartHeader(header: unknown, localeService?: LocaleService, authored?: boolean): { header: ISheetChartSourceHeaderTitle; diagnostics: IChartDiagnostic[]; }; export declare function validateChartSourceHeader(header: unknown, sourceAxisCount: number, localeService?: LocaleService, authored?: boolean): INormalizedChartSourceHeaderResult; export declare function normalizeChartSourceHeader(header: unknown, sourceRowCount: number, sourceColumnCount: number, isRowDirection?: boolean, localeService?: LocaleService, authored?: boolean): INormalizedChartSourceHeaderResult; export declare function projectSingleRangeDataSet(table: ISheetChartSourceTable, header: IChartSourceHeader, isRowDirection: boolean, sourceRowCount: number, sourceColumnCount: number, localeService?: LocaleService): INormalizedChartSourceHeaderResult & { dataSet: IUniverDataSet; }; /** Runtime availability is reported by the chart binding; an empty existing cell is a valid title. */ export declare function getUnavailableChartTitleDiagnostics(source: ISheetChartSourceRanges, isAvailable: (reference: IChartSourceRangeItem) => boolean, localeService: LocaleService): IChartDiagnostic[];