import type { IEditor } from 'roosterjs-content-model-types'; /** * Insert a hyperlink at cursor. * When there is a selection, hyperlink will be applied to the selection, * otherwise a hyperlink will be inserted to the cursor position. * @param editor Editor object * @param link Link address, can be http(s), mailto, notes, file, unc, ftp, news, telnet, gopher, wais. * When protocol is not specified, a best matched protocol will be predicted. * @param anchorTitle Optional alt text of the link, will be shown when hover on the link * @param displayText Optional display text for the link. * @param target Optional display target for the link ("_blank"|"_self"|"_parent"|"_top"|"{framename}") * If specified, the display text of link will be replaced with this text. * If not specified and there wasn't a link, the link url will be used as display text. */ export declare function insertLink(editor: IEditor, link: string, anchorTitle?: string, displayText?: string, target?: string): void;