/** * 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 { ICellData, IDocumentData, IUniverInstanceService, Nullable } from '@univerjs/core'; import type { IDefinedNamesService } from '@univerjs/engine-formula'; import type { TableManager } from './models/table-manager'; import type { ITableColorFilterItem, ITableConditionFilterItem, ITableFilterItem, ITableManualFilterItem, ITableRecordFilterItem } from './types/type'; import { SheetsTableButtonStateEnum, SheetsTableSortStateEnum } from './types/enum'; export declare function getColumnName(columnIndex: number, columnText: string): string; export declare const getStringFromDataStream: (data: IDocumentData) => string; /** * transform cell data to dimension name * @param cellData the sheet cell data * @param styles workBook styles collection * @param patternInfoRecord The cache record for pattern info * @returns {string} The dimension name */ export declare function convertCellDataToString(cellData: Nullable): string; export declare function getTableFilterState(tableFilter: ITableFilterItem | undefined, sortState: SheetsTableSortStateEnum): SheetsTableButtonStateEnum; export declare function isConditionFilter(filter: ITableFilterItem | undefined): filter is ITableConditionFilterItem; export declare function isManualTableFilter(filter: ITableFilterItem | undefined): filter is ITableManualFilterItem; export declare function isColorTableFilter(filter: ITableFilterItem | undefined): filter is ITableColorFilterItem; export declare function isRecordTableFilter(filter: ITableFilterItem | undefined): filter is ITableRecordFilterItem; /** * Get existing names including sheet names, table names and defined names to check for duplicates table name. */ export declare function getExistingNamesSet(unitId: string, options: { univerInstanceService?: IUniverInstanceService; tableManager?: TableManager; definedNamesService?: IDefinedNamesService; }): Set;