/** * Opt-in tolerant entry points for the Liquid+HTML parser. * * These mirror `toLiquidAST` / `toLiquidHtmlAST` from `./ast` exactly, except * they construct a `TolerantDocumentParser` instead of the base * `DocumentParser`. A structural parse failure that would abort the default * parse is instead caught and surfaced as a `LiquidErrorNode`, so the returned * `DocumentNode` can carry several errors interleaved with the constructs the * parser did recover. The default path is a different class reached by a * different function and stays byte-identical. */ import type { ASTBuildOptions, DocumentNode, LiquidErrorNode, LiquidHtmlNode } from './ast'; export declare function toTolerantLiquidAST(source: string, options?: ASTBuildOptions): DocumentNode; export declare function toTolerantLiquidHtmlAST(source: string, options?: ASTBuildOptions): DocumentNode; export declare function findErrorNodeAtOffset(ast: LiquidHtmlNode, offset: number): { node: LiquidErrorNode; ancestors: LiquidHtmlNode[]; } | null;