import type { IAccessor, ICommand } from '@univerjs/core'; import type { IGetPivotCollapseDataParams } from '../../const/type'; export interface ISetPivotCollapseCommandParams { /** * @property {string} unitId The unit id of workbook which the pivot table belongs to. */ unitId: string; /** * @property {string} subUnitId The sub unit id of worksheet which the pivot table belongs to. */ subUnitId: string; /** * @property {number} row The row index of the cell. */ row: number; /** * @property {number} col The column index of the cell. */ col: number; /** * @property {boolean} collapse The collapse status of the pivot item.True means collapse, false means expand. */ collapse: boolean; } export type IPivotCollapseTarget = IGetPivotCollapseDataParams & { unitId: string; subUnitId: string; pivotTableId: string; }; export declare const SetPivotCollapseCommand: ICommand; export declare function executePivotCollapse(accessor: IAccessor, target: IPivotCollapseTarget): Promise;