import { Editor, Descendant } from 'slate';
import { CustomElement } from './types';
export declare function isMentionElement(type: string): boolean;
export declare function getMentionsCount(nodes: CustomElement[]): number;
/** This function synchronises slate editor chidren with value prop.
 * Setting value directly (editor.children = value) breaks UI when keyboard is used
 * https://docs.slatejs.org/walkthroughs/06-saving-to-a-database
 */
export declare function resetNodes(editor: Editor, nodes: Descendant[]): void;
