import type { ChartTypeBits, IChartSnapshot, IChartSourceHeader } from '@univerjs-pro/engine-chart'; import type { IMutation, IRange } from '@univerjs/core'; import type { ISheetCommandSharedParams } from '@univerjs/sheets'; import type { IChartSourceMultiRangeItem, ISheetChartSourceHeaderTitles, ISheetChartSourceRanges } from '../../models/types'; type IInsertSheetsChartMutationCommonParams = ISheetCommandSharedParams & Omit & { chartId: string; chartType: ChartTypeBits; }; /** Keep the original changeset shape; source ownership was optional in older same-sheet records. */ export type IInsertSheetsChartMutationSource = { range: IRange; rangeUnitId?: string; rangeSubUnitId?: string; isRowDirection?: boolean; header?: IChartSourceHeader; } | { ranges: IChartSourceMultiRangeItem[]; }; export type IInsertSheetsChartMutationParams = IInsertSheetsChartMutationCommonParams & (IInsertSheetsChartMutationSource | { rangeInfo: ISheetChartSourceRanges; }); export declare function toInsertChartMutationSource(source: ISheetChartSourceRanges): IInsertSheetsChartMutationSource; export interface IRemoveSheetsChartMutationParams extends ISheetCommandSharedParams { chartId: string; } export declare const InsertSheetsChartMutation: IMutation; export declare const RemoveSheetsChartMutation: IMutation; export {};