import { CommonElementStyle } from '../RichTextLib.ts'; import { Selection } from '@tiptap/pm/state'; export type TableInfo = CommonElementStyle & { tableAlign?: string; }; export type TableColumnInfo = { width?: string; }; /** * Transaction 의 선택된 Node 중에서, table, tableRow, tableCell 에 해당하는 node 와 nodePos 를 찾아 리턴한다. * @param selection * @param type */ export declare const findTableNode: (selection: Selection, type: 'table' | 'tableRow' | 'tableCell') => { node: import('@tiptap/pm/model').Node; nodePos: number; } | { node?: undefined; nodePos?: undefined; }; export declare const tableInfoNumberToPixel: (data: TableInfo) => TableInfo; export declare const setTableColumnWidth: (node: any, tablePos: number, colIndex: number, width: string | undefined, tr: any) => void;