import type { SpreadsheetImage, SpreadsheetWarning } from '../../spreadsheet/types'; import type { Biff8DrawingShape } from '../drawing/types'; import type { Biff8ChartSubstream, Biff8SheetDescriptor, Biff8Workbook, Biff8Worksheet } from '../types'; import { adaptBiff8Chart } from './adaptChart'; /** 从 BoundSheet8 指向的位置读取独立 Chart 子流。 */ export declare function readBiff8ChartSubstream(stream: Uint8Array, descriptor: Biff8SheetDescriptor, endOffset: number): Biff8ChartSubstream; /** 工作表内嵌图表及其锚点和预览图片。 */ export type ParsedSheetChart = { /** 在所属集合中的唯一标识。 */ id: string; /** 面向用户展示的标题。 */ title?: string; /** 转换后的标准图表模型。 */ chart: ReturnType['chart']; /** 对象在工作表或画布中的定位锚点。 */ anchor: Biff8DrawingShape['anchor']; /** 匹配到的图表静态预览图片标识。 */ previewImageId?: string; /** 图表形状声明的 OfficeArt 超链接目标。 */ hyperlink?: Biff8DrawingShape['hyperlink']; /** 解析时产生但不阻止继续预览的警告。 */ warnings: SpreadsheetWarning[]; }; /** 解析工作表内嵌图表;单个图表失败不会影响同表的其他内容。 */ export declare function parseBiff8Charts(workbook: Biff8Workbook, descriptor: Biff8SheetDescriptor, substreams: Biff8ChartSubstream[], shapes: Biff8DrawingShape[], images: SpreadsheetImage[], sourceSheet?: Biff8Worksheet): ParsedSheetChart[];