import type { IChartSourceTable } from '@univerjs-pro/engine-chart'; import type { IRange, ParseOptions, Styles, Worksheet } from '@univerjs/core'; import type { IChartSourceRangeItem } from '../models/types'; /** Ephemeral projection input; the worksheet reader is never stored in chart snapshots. */ export interface ISheetChartSourceTable extends IChartSourceTable { /** Plain engine tables have only visible cells; Sheet tables can read hidden physical Header cells. */ readHeaderLabels?: (physicalOffset: number, isRowDirection: boolean) => readonly string[]; /** References belong to source configuration; a pure engine table has no Sheet-reference reader. */ readHeaderReference?: (source: IChartSourceRangeItem, isRowDirection: boolean) => string | undefined; } export interface IBuildSheetChartSourceTableOptions { plotVisibleOnly?: boolean; /** When specified, retain all physical fields and filter only observation coordinates. */ isRowDirection?: boolean; numfmtOptions: ParseOptions; range: IRange; styles: Styles; worksheet: Worksheet; } export declare function buildSheetChartSourceTable({ plotVisibleOnly, isRowDirection, numfmtOptions, range, styles, worksheet, }: IBuildSheetChartSourceTableOptions): ISheetChartSourceTable;