import { Token } from './index'; import { MagicLinkToken } from './magicLink'; import type { Config, LintError } from '../base'; /** * external link * * 外链 * @classdesc `{childNodes: [MagicLinkToken, ?Token]}` */ export declare abstract class ExtLinkToken extends Token { #private; readonly childNodes: readonly [MagicLinkToken] | readonly [MagicLinkToken, Token]; abstract get firstChild(): MagicLinkToken; abstract get lastChild(): Token; abstract get children(): [MagicLinkToken] | [MagicLinkToken, Token]; abstract get firstElementChild(): MagicLinkToken; abstract get lastElementChild(): Token; get type(): 'ext-link'; /** text of the link / 链接显示文字 */ get innerText(): string; set innerText(text: string); /** URL protocol / 协议 */ get protocol(): string | undefined; set protocol(value: string); /** link / 链接 */ get link(): string; set link(url: string); /** * @param url 网址 * @param space 空白字符 * @param text 链接文字 */ constructor(url?: string, space?: string, text?: string, config?: Config, accum?: Token[]); cloneNode(): this; /** * Set the text of the link * * 设置链接显示文字 * @param str text of the link / 链接显示文字 */ setLinkText(str: string): void; /** * Get the URL * * 获取网址 */ getUrl(): URL; /** * Set the target of the link * * 设置外链目标 * @param url URL containing the protocol / 含协议的网址 */ setTarget(url: string): void; }