/** * 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 { IDocumentData, IRange, IStyleData } from '@univerjs/core'; /** * The entire list of DOM spans is parsed into a rich-text JSON style sheet * @param $dom * @returns */ export declare function handleDomToJson($dom: HTMLElement): IDocumentData | string; /** * A single span parses out the ITextStyle style sheet * @param $dom * @returns */ export declare function handleStringToStyle($dom?: HTMLElement, cssStyle?: string): IStyleData & Record; /** * split span text * @param text * @returns */ export declare function splitSpanText(text: string): string[]; export declare function handleTableColgroup(table: string): any[]; export declare function handleTableRowGroup(table: string): any[]; export declare function handelTableToJson(table: string): any[]; export declare function handlePlainToJson(plain: string): any[]; export declare function handleTableMergeData(data: any[], selection?: IRange): { data: any[]; mergeData: { startRow: any; endRow: any; startColumn: any; endColumn: any; }[]; }; export declare function handelExcelToJson(html: string): any[] | undefined;