import Parser from '../index'; import { Token } from './index'; import type { LintError } from '../base'; import type { AstText, CommentToken, IncludeToken, NoincludeToken, TranscludeToken } from '../internal'; declare type ExtLinkTypes = 'free-ext-link' | 'ext-link-url' | 'magic-link'; declare type Child = CommentToken | IncludeToken | NoincludeToken | TranscludeToken; /** * free external link * * 自由外链 * @classdesc `{childNodes: (AstText|CommentToken|IncludeToken|NoincludeToken|TranscludeToken)[]}` */ export declare abstract class MagicLinkToken extends Token { #private; readonly childNodes: readonly (AstText | Child)[]; abstract get firstChild(): AstText | TranscludeToken; abstract get lastChild(): AstText | Child; get type(): ExtLinkTypes; /** * text of the link * * 链接显示文字 * @since v1.10.0 */ get innerText(): string; /** link / 链接 */ get link(): string; /** * @param url 网址 * @param type 类型 */ constructor(url?: string, type?: ExtLinkTypes, config?: Parser.Config, accum?: Token[]); /** * Get the URL * * 获取网址 * @param articlePath article path / 条目路径 */ getUrl(articlePath?: string): URL | string; } export {};