import { NowikiBaseToken } from './base'; import type { LintError, Config, AST } from '../../base'; import type { Font } from '../../lib/node'; import type { Token } from '../../internal'; import type { AstRange } from '../../lib/range'; import type { SyntaxBase } from '../../mixin/syntax'; export interface QuoteToken extends SyntaxBase { } /** * `''` and `'''` * * `''`和`'''` */ export declare abstract class QuoteToken extends NowikiBaseToken { #private; get type(): 'quote'; /** * whether to be closing quotes * * 是否闭合 * @since v1.16.5 */ get closing(): Partial; /** @param closing 是否闭合 */ constructor(wikitext: string, closing: Font, config?: Config, accum?: Token[]); cloneNode(): this; /** * Find the matching apostrophes * * 搜索匹配的直引号 * @since v1.30.0 * @param type type of apostrophes to match / 匹配的直引号类型 * @throws `RangeError` ambiguous or wrong apostrophe type */ findMatchingQuote(type?: 'bold' | 'italic'): this | undefined; /** * Try to get the range of bold/italic text * * 尝试获取粗体/斜体文本范围 * @param type type of apostrophes / 直引号类型 */ getRange(type?: 'bold' | 'italic'): AstRange | undefined; }