import { DocumentParser } from './parser'; import { TokenType } from './tokenizer'; import type { LiquidErrorNode, LiquidHtmlNode } from '../ast'; export declare const RESYNC_TOKENS: ReadonlySet; /** Whether a token type opens a construct we can safely resume parsing on. */ export declare function isResyncToken(type: TokenType): boolean; export declare function tokenTypeName(type: TokenType): string; export declare function makeLiquidErrorNode(start: number, end: number, source: string, message: string, found?: string): LiquidErrorNode; export declare class TolerantDocumentParser extends DocumentParser { /** * Marks this parse as tolerant so the markup-construction sites enable the * markup parser's tolerant recovery axis. Disjoint from lax. */ isTolerant(): boolean; parseNode(): LiquidHtmlNode; }