import { AstText } from '../../lib/text'; import { Token } from '../index'; import { NowikiBaseToken } from './base'; import type { DdToken, ListToken } from '../../internal'; import type { AST } from '../../base'; export interface ListRangeToken extends Token { readonly type: 'list-range'; readonly previousSibling: ListToken | DdToken; readonly nextSibling: DdToken | AstText | undefined; readonly previousElementSibling: ListToken | DdToken; readonly nextElementSibling: DdToken | undefined; } /** `;:*#` */ export declare abstract class ListBaseToken extends NowikiBaseToken { abstract get type(): 'dd' | 'list'; /** whether to contain `;` / 是否包含`;` */ get dt(): boolean; /** * number of indentation * * 缩进数 * @since v1.16.5 */ get indent(): number; /** @throws `Error` if the token contains non-`:` characters */ set indent(indent: number); /** whether to contain `:` / 是否包含`:` */ get dd(): boolean; /** whether to contain `*` / 是否包含`*` */ get ul(): boolean; /** whether to contain `#` / 是否包含`#` */ get ol(): boolean; /** * Get the range of the list * * 获取列表行的范围 * @throws `Error` if the token has no parent node */ getRange(): ListRangeToken; }