import * as slate from 'slate'; import * as slate_hyperscript_dist_creators from 'slate-hyperscript/dist/creators'; import * as _udecode_slate from '@udecode/slate'; import { Path } from '@udecode/slate'; import { createText } from 'slate-hyperscript'; type DataTransferDataMap = Map; type DataTransferDataType = string | 'text/html' | 'text/plain'; declare const createDataTransfer: (dataMap?: DataTransferDataMap) => DataTransfer; declare const getHtmlDocument: (html: string) => Document; /** All tokens inherit from a single constructor for `instanceof` checking. */ declare class Token { } /** Anchor tokens represent the selection's anchor point. */ declare class AnchorToken extends Token { offset?: number; path?: Path; constructor(props?: { offset?: number; path?: Path; }); } /** Focus tokens represent the selection's focus point. */ declare class FocusToken extends Token { offset?: number; path?: Path; constructor(props?: { offset?: number; path?: Path; }); } declare global { namespace JSX { interface IntrinsicElements { [key: string]: any; anchor: any; cursor: any; editor: any; element: any; focus: any; fragment: any; hli: any; hol: any; hp: any; htext: { [key: string]: any; bold?: boolean; children?: any; code?: boolean; italic?: boolean; underline?: boolean; }; hul: any; selection: any; } } } declare const jsx: (tagName: S, attributes?: object, ...children: any[]) => ReturnType<{ anchor: (tagName: string, attributes: Record) => AnchorToken; cursor: (tagName: string, attributes: Record) => Token[]; editor: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.Editor; element: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.TElement; focus: (tagName: string, attributes: Record) => FocusToken; fragment: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.Descendant[]; selection: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.TRange; text: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.TText; }[S]>; declare const jsxt: (tagName: S, attributes?: Object, ...children: any[]) => ReturnType<{ anchor: typeof slate_hyperscript_dist_creators.createAnchor; cursor: typeof slate_hyperscript_dist_creators.createCursor; editor: (tagName: string, attributes: { [key: string]: any; }, children: any[]) => slate.BaseEditor; element: typeof slate_hyperscript_dist_creators.createElement; focus: typeof slate_hyperscript_dist_creators.createFocus; fragment: typeof slate_hyperscript_dist_creators.createFragment; selection: typeof slate_hyperscript_dist_creators.createSelection; text: typeof createText; }[S]>; declare const hjsx: (tagName: S, attributes?: object, ...children: any[]) => ReturnType<{ anchor: (tagName: string, attributes: Record) => AnchorToken; cursor: (tagName: string, attributes: Record) => Token[]; editor: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.Editor; element: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.TElement; focus: (tagName: string, attributes: Record) => FocusToken; fragment: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.Descendant[]; selection: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.TRange; text: (tagName: string, attributes: Record, children: any[]) => _udecode_slate.TText; }[S]>; export { type DataTransferDataMap, type DataTransferDataType, createDataTransfer, getHtmlDocument, hjsx, jsx, jsxt };