import { RteConfig } from './config'; import { RteDocument, RteMark, RteNode } from './document'; export type RteView = ({ type: 'node'; node: RteNode; children: RteView; } | { type: 'mark'; mark: RteMark; children: RteView; } | { type: 'fragment'; content: RteView[]; }) & {}; export type RteViewCtx = { config: RteConfig; options: RteViewOptions; }; export type RteViewOptions = { renderChildView?: (view: RteView & { type: 'node' | 'mark'; }) => { dom: HTMLElement; contentDom?: HTMLElement; } | true | false; }; export declare const convertToView: (doc: RteDocument, ctx: RteViewCtx) => RteView;