/** * Copyright 2023-present DreamNum Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { Worksheet } from '@univerjs/core'; import { Disposable } from '@univerjs/core'; import type { ITableFilterItem, ITableInfoWithUnitId, ITableOptions, ITableRange, TableMetaType } from '../types/type'; import { TableManager } from '../models/table-manager'; import { TableConditionTypeEnum } from '../types/enum'; export declare class SheetTableService extends Disposable { private _tableManager; constructor(_tableManager: TableManager); getTableInfo(unitId: string, tableId: string): ITableInfoWithUnitId | undefined; getTableList(unitId: string): ITableInfoWithUnitId[]; addTable(unitId: string, subUnitId: string, tableName: string, rangeInfo: ITableRange, tableHeader?: string[], tableId?: string, options?: ITableOptions, meta?: TableMetaType): string; deleteTable(unitId: string, subUnitId: string, tableId: string): void; getTableMeta(unitId: string, tableId: string): TableMetaType | undefined; setTableMeta(unitId: string, tableId: string, meta: TableMetaType): void; getTableColumnMeta(unitId: string, tableId: string, index: number): TableMetaType | undefined; selTableColumnMeta(unitId: string, tableId: string, index: number, meta: TableMetaType): void; addFilter(unitId: string, tableId: string, column: number, filter: ITableFilterItem): void; getCellValueWithConditionType(sheet: Worksheet, row: number, col: number, conditionType?: TableConditionTypeEnum): string | number | Date | null | undefined; }