import { Range } from 'slate'; import type { RichTextEditor } from '../types'; /** * withLinks is a function that wraps the RichTextEditor and * enables the use of hyperlinks within the text editor */ export declare const withLinks: (editor: RichTextEditor) => RichTextEditor; /** * insertLink is used to insert a hyperlink inside a text editor given * a valid selection and URL */ export declare const insertLink: (editor: RichTextEditor, selection: Range | null, url: string) => void;