import { createAnchor, createCursor, createElement, createFocus, createFragment, createSelection, createText } from './creators'; /** * `HyperscriptCreators` are dictionaries of `HyperscriptCreator` functions * keyed by tag name. */ type HyperscriptCreators = Record T>; /** * `HyperscriptShorthands` are dictionaries of properties applied to specific * kind of object, keyed by tag name. They allow you to easily define custom * hyperscript tags for your domain. */ type HyperscriptShorthands = Record>; /** * Create a Slate hyperscript function with `options`. */ declare const createHyperscript: (options?: { creators?: HyperscriptCreators; elements?: HyperscriptShorthands; }) => (tagName: S, attributes?: Object, ...children: any[]) => ReturnType<{ anchor: typeof createAnchor; cursor: typeof createCursor; editor: (tagName: string, attributes: { [key: string]: any; }, children: any[]) => import("slate").BaseEditor; element: typeof createElement; focus: typeof createFocus; fragment: typeof createFragment; selection: typeof createSelection; text: typeof createText; }[S]>; export { createHyperscript, HyperscriptCreators, HyperscriptShorthands }; //# sourceMappingURL=hyperscript.d.ts.map