UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

50 lines (49 loc) 1.83 kB
import YAML from "yaml"; import { CST } from "yaml/parse-cst"; import { Alias as _Alias, Merge as _Merge, Node as _Node, Pair as _Pair, Scalar as _Scalar } from "yaml/types"; export declare const Document: typeof YAML.Document, parseCST: typeof YAML.parseCST; export { ParsedCST } from "yaml/parse-cst"; export { YAMLError, YAMLSyntaxError, YAMLSemanticError } from "yaml/util"; export declare namespace ast { type Alias = _Alias; type BlockFolded = YAML.AST.BlockFolded; type BlockLiteral = YAML.AST.BlockLiteral; type Document = YAML.Document; type FlowMap = YAML.AST.FlowMap; type FlowSeq = YAML.AST.FlowSeq; type Map = YAML.AST.BlockMap; type Merge = _Merge; type Node = _Node; type Pair = _Pair; type PlainValue = YAML.AST.PlainValue; type QuoteDouble = YAML.AST.QuoteDouble; type QuoteSingle = YAML.AST.QuoteSingle; type Scalar = _Scalar; type Seq = YAML.AST.BlockSeq; } export declare namespace cst { type Alias = CST.Alias; type BlankLine = CST.BlankLine; type BlockFolded = CST.BlockFolded; type BlockLiteral = CST.BlockLiteral; type BlockValue = CST.BlockValue; type Comment = CST.Comment; type Directive = CST.Directive; type Document = CST.Document; type FlowChar = CST.FlowChar; type FlowCollection = CST.FlowCollection; type FlowMap = CST.FlowMap; type FlowSeq = CST.FlowSeq; type Map = CST.Map; type MapItem = CST.MapItem; type MapKey = CST.MapKey; type MapValue = CST.MapValue; type Node = CST.Node; type PlainValue = CST.PlainValue; type QuoteDouble = CST.QuoteDouble; type QuoteSingle = CST.QuoteSingle; type QuoteValue = CST.QuoteValue; type Range = CST.Range; type Seq = CST.Seq; type SeqItem = CST.SeqItem; }