import type { AreaLineStyle, ChartModel, ChartStyle, DeepPartial, IAllSeriesStyle, IAxisOptions, IChartContext, IChartStyle, ILegendStyle, InvalidValueType, IPieLabelStyle, IRelationForceOptions, IRuntimeAxis, ITrendLine, LinePointShape, RadarShape, RelationChartLayoutEnum, RightYAxisOptions, TitlePositionEnum, WaterfallStackTypeEnum, WordCloudShapeEnum } from '@univerjs-pro/engine-chart'; import type { IChartSourceMultiRangeItem, IChartUpdateConfigCommandParams, IChartUpdateSourceCommandParams, ISheetChartSourceSingleRange } from '@univerjs-pro/sheets-chart'; import type { Nullable } from '@univerjs/core'; import type { Observable } from 'rxjs'; import { CategoryType, ChartTypeBits, DataOrientation } from '@univerjs-pro/engine-chart'; import { ChartModelService, SheetsChartService } from '@univerjs-pro/sheets-chart'; import { Disposable, ICommandService, IUniverInstanceService, LocaleService } from '@univerjs/core'; import { IChartHostProviderService } from './sheets-chart-host-provider.service'; export declare function registryChartConfigState(service: SheetsChartUIService): void; export interface IChartOptionType { label: string; value: string; } export interface IChartConfigStateMap { headers: IChartConfigState; orient: IChartConfigState>; aggregate: IChartConfigState; gradientFill: IChartConfigState>; indicator: IChartConfigState>; chartType: IChartConfigState; dataRange: IChartConfigState>; /** Series & Category */ categoryIndex: IChartConfigState>; categoryType: IChartConfigState>; categoryList: IChartConfigState; bubbleCategoryList: IChartConfigState; seriesValues: IChartConfigState; trendlineValues: IChartConfigState; seriesList: IChartConfigState; seriesResourceList: IChartConfigState; asCategory: IChartConfigState; backgroundColor: IChartConfigState>; borderColor: IChartConfigState>; fontSize: IChartConfigState; titleFontSize: IChartConfigState; titles: IChartConfigState>, DeepPartial>; allSeriesStyle: IChartConfigState>, IAllSeriesStyle>; seriesStyleMap: IChartConfigState; legendStyle: IChartConfigState>, Partial>; /** Axes */ xAxisOptions: IChartConfigState>, Partial>; yAxisOptions: IChartConfigState>, Partial>; rightYAxisOptions: IChartConfigState>, Partial>; runtimeAxes: IChartConfigState>; areaLineStyle: IChartConfigState>; pieLabelStyle: IChartConfigState>>; wordCloudShape: IChartConfigState> | undefined; wordCloudMask: IChartConfigState> | undefined; wordCloudRepeat: IChartConfigState> | undefined; funnelGap: IChartConfigState>; funnelUseAbsValue: IChartConfigState>; padAngleStyle: IChartConfigState, boolean>; isHalfPie: IChartConfigState, boolean>; isRosePie: IChartConfigState, boolean>; showLabelLine: IChartConfigState, boolean>; doughnutHole: IChartConfigState, number>; pieBorderColor: IChartConfigState, string>; radarShape: IChartConfigState, RadarShape>; radarFill: IChartConfigState, boolean>; invalidValueType: IChartConfigState, InvalidValueType>; dataPointsOptions: IChartConfigState>; chartThemeColorType: IChartConfigState>; titlePosition: IChartConfigState, TitlePositionEnum>; bubbleSizeSeriesId: IChartConfigState, number | undefined>; bubbleXAxis: IChartConfigState, number>; bubbleYAxis: IChartConfigState, number>; bubbleLabel: IChartConfigState, number>; bubbleSeries: IChartConfigState, number>; relationLayout: IChartConfigState, RelationChartLayoutEnum>; useValueAsSymbolSize: IChartConfigState, boolean>; forceOption: IChartConfigState, IRelationForceOptions | undefined>; rotateLabel: IChartConfigState, boolean>; useEmphasis: IChartConfigState, boolean>; relationNodeShape: IChartConfigState, LinePointShape>; useDateAxis: IChartConfigState, boolean>; waterfallStack: IChartConfigState, WaterfallStackTypeEnum>; useSubtotal: IChartConfigState, boolean>; paretoStyle: IChartConfigState, ChartStyle['pareto']>; paretoDataPointsOptions: IChartConfigState>; visualMapType: IChartConfigState, 'continuous' | 'piecewise'>; heatmapMax: IChartConfigState, number>; heatmapMin: IChartConfigState, number>; valueSuffix: IChartConfigState, string>; valueScale: IChartConfigState, number>; digitalFixed: IChartConfigState, number>; } export type ChartConfigStateKey = keyof IChartConfigStateMap; export type ChartConfigStateValue = InferChartConfigStateValue; export type InferChartConfigStateValue = M extends IChartConfigState ? V : never; export type IChartConfigState = { set?(value: SetValue): void; get(): Observable | undefined; } | Observable; export declare class SheetsChartUIService extends Disposable { private readonly _chartModelService; private readonly _sheetsChartService; private readonly _commandService; private readonly _localeService; private readonly _chartHostProviderService; private _univerInstanceService; private _viewState; private _rangeSelectMode; constructor(_chartModelService: ChartModelService, _sheetsChartService: SheetsChartService, _commandService: ICommandService, _localeService: LocaleService, _chartHostProviderService: IChartHostProviderService, _univerInstanceService: IUniverInstanceService); get activeChartModel(): Nullable; get rangeSelectMode(): boolean; set rangeSelectMode(on: boolean); getDataSource(id: string): import("@univerjs-pro/sheets-chart/models/types.js").ISheetChartDataSource | undefined; registerViewState(id: T, state: (chartModel: ChartModel) => IChartConfigStateMap[T]): void; getViewState(id: ChartConfigStateKey): IChartConfigState | undefined; executeChartUpdateConfig(params: Omit): void; executeChartUpdateSourceConfig(params: Omit): void; removeViewState(id: ChartConfigStateKey): void; setBorder(id: string, color: string): void; t(...args: Parameters): string; dispose(): void; }