UNPKG

921 BTypeScriptView Raw
1/**
2 * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4 */
5/**
6 * @module table/tablecolumnresize/converters
7 */
8import type { DowncastDispatcher, UpcastDispatcher } from 'ckeditor5/src/engine';
9import type TableUtils from '../tableutils';
10/**
11 * Returns a upcast helper that ensures the number of `<tableColumn>` elements corresponds to the actual number of columns in the table,
12 * because the input data might have too few or too many <col> elements.
13 */
14export declare function upcastColgroupElement(tableUtilsPlugin: TableUtils): (dispatcher: UpcastDispatcher) => void;
15/**
16 * Returns downcast helper for adding `ck-table-resized` class if there is a `<tableColumnGroup>` element inside the table.
17 */
18export declare function downcastTableResizedClass(): (dispatcher: DowncastDispatcher) => void;