yaml.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. import { AST, Document as _Document } from "yaml";
  2. import { CST } from "yaml/parse-cst";
  3. import { Alias as _Alias, Merge as _Merge, Node as _Node, Pair as _Pair, Scalar as _Scalar } from "yaml/types";
  4. export declare const Document: typeof _Document;
  5. export { parseCST } from "yaml";
  6. export { ParsedCST } from "yaml/parse-cst";
  7. export { YAMLError, YAMLSyntaxError, YAMLSemanticError } from "yaml/util";
  8. export declare namespace ast {
  9. type Alias = _Alias;
  10. type BlockFolded = AST.BlockFolded;
  11. type BlockLiteral = AST.BlockLiteral;
  12. type Document = _Document;
  13. type FlowMap = AST.FlowMap;
  14. type FlowSeq = AST.FlowSeq;
  15. type Map = AST.BlockMap;
  16. type Merge = _Merge;
  17. type Node = _Node;
  18. type Pair = _Pair;
  19. type PlainValue = AST.PlainValue;
  20. type QuoteDouble = AST.QuoteDouble;
  21. type QuoteSingle = AST.QuoteSingle;
  22. type Scalar = _Scalar;
  23. type Seq = AST.BlockSeq;
  24. }
  25. export declare namespace cst {
  26. type Alias = CST.Alias;
  27. type BlankLine = CST.BlankLine;
  28. type BlockFolded = CST.BlockFolded;
  29. type BlockLiteral = CST.BlockLiteral;
  30. type BlockValue = CST.BlockValue;
  31. type Comment = CST.Comment;
  32. type Directive = CST.Directive;
  33. type Document = CST.Document;
  34. type FlowChar = CST.FlowChar;
  35. type FlowCollection = CST.FlowCollection;
  36. type FlowMap = CST.FlowMap;
  37. type FlowSeq = CST.FlowSeq;
  38. type Map = CST.Map;
  39. type MapItem = CST.MapItem;
  40. type MapKey = CST.MapKey;
  41. type MapValue = CST.MapValue;
  42. type Node = CST.Node;
  43. type PlainValue = CST.PlainValue;
  44. type QuoteDouble = CST.QuoteDouble;
  45. type QuoteSingle = CST.QuoteSingle;
  46. type QuoteValue = CST.QuoteValue;
  47. type Range = CST.Range;
  48. type Seq = CST.Seq;
  49. type SeqItem = CST.SeqItem;
  50. }