/** * functions in this module SHOULD NOT have side effects, * but should be focused around providing necessary data * or dom transformations with no state in this file. */ /** * transforms an input url to make a link out of * into a correctly formed url. If it's clearly a mailing link, * adds mailto: to the front, and if it has no protocol but isn't an * absolute path, it prepends "http://". * * @param {string} input the raw url representative input by a user * * @returns {string} a well formed url */ export declare function cleanUrl(input: string): string; export declare function getAnchorElement(editor: any, selectedElm: any): any; export declare function isOnlyTextSelected(html: any): boolean; export declare function isOKToLink(html: any): boolean; /** * Null-safe TinyMCE selection HTML. editor.selection can be briefly null * (treat as empty content). */ export declare function getSelectionContent(editor: any, options: any): any; /** * True when the current selection is OK to wrap in a link. Fail closed when * selection is missing or getContent throws during teardown. */ export declare function isEditorSelectionOKToLink(editor: any): boolean; export declare function isImageFigure(elm: any): any;