import type { IUniverInstanceService } from '@univerjs/core'; import type { Observable } from 'rxjs'; import type { IChartSourceMultiRangeItem, ISheetChartSourceSingleRange, ISheetChartSourceSnapshot, IUniverDataSet } from '../models/types'; import { ChartDataSource } from '@univerjs-pro/engine-chart'; /** * @extends ChartDataSource * @description * Represents a single data source for a chart. */ export declare class ChartDataSourceSingle extends ChartDataSource { private readonly _univerInstanceService; private readonly _plotVisibleOnly; private readonly _snapshot$; readonly snapshot$: Observable; readonly rangeInfo$: Observable; readonly data$: Observable; readonly isRowDirection$: Observable; readonly canSwitchOrient$: Observable; constructor(_univerInstanceService: IUniverInstanceService, rangeInfo: ISheetChartSourceSingleRange, _plotVisibleOnly?: boolean); getRangeInfo(): ISheetChartSourceSingleRange; get isRowDirection(): boolean; canSwitchOrient(): boolean; convertDataSet(sourceInfo?: ISheetChartSourceSingleRange): IUniverDataSet; getDataSet(): IUniverDataSet; getDimensionCount(): number; refreshDataSet(): void; private _emit; dispose(): void; } export declare class ChartDataSourceMulti extends ChartDataSource { private readonly _univerInstanceService; private readonly _plotVisibleOnly; private readonly _snapshot$; readonly snapshot$: Observable; readonly rangeInfo$: Observable; readonly data$: Observable; readonly isRowDirection$: Observable; readonly canSwitchOrient$: Observable; constructor(_univerInstanceService: IUniverInstanceService, rangeInfo: IChartSourceMultiRangeItem[], _plotVisibleOnly?: boolean); canSwitchOrient(): boolean; getRangeInfo(): IChartSourceMultiRangeItem[]; get isRowDirection(): boolean; convertDataSet(rangeInfos?: IChartSourceMultiRangeItem[]): IUniverDataSet; getDataSet(): IUniverDataSet; getDimensionCount(): number; refreshDataSet(): void; private _emit; dispose(): void; } export declare function createChartDataSource(univerInstanceService: IUniverInstanceService, rangeInfo: ISheetChartSourceSingleRange | IChartSourceMultiRangeItem[], plotVisibleOnly?: boolean): ChartDataSourceSingle | ChartDataSourceMulti;