index.d.ts 1.3 KB

12345678910111213141516171819202122
  1. export { Composer } from './compose/composer.js';
  2. export { Document } from './doc/Document.js';
  3. export { Schema } from './schema/Schema.js';
  4. export { ErrorCode, YAMLError, YAMLParseError, YAMLWarning } from './errors.js';
  5. export { Alias } from './nodes/Alias.js';
  6. export { isAlias, isCollection, isDocument, isMap, isNode, isPair, isScalar, isSeq } from './nodes/identity.js';
  7. export { Node, ParsedNode, Range } from './nodes/Node.js';
  8. export { Pair } from './nodes/Pair.js';
  9. export { Scalar } from './nodes/Scalar.js';
  10. export { YAMLMap } from './nodes/YAMLMap.js';
  11. export { YAMLSeq } from './nodes/YAMLSeq.js';
  12. export type { CreateNodeOptions, DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions, ToStringOptions } from './options.js';
  13. export * as CST from './parse/cst.js';
  14. export { Lexer } from './parse/lexer.js';
  15. export { LineCounter } from './parse/line-counter.js';
  16. export { Parser } from './parse/parser.js';
  17. export { EmptyStream, parse, parseAllDocuments, parseDocument, stringify } from './public-api.js';
  18. export type { TagId, Tags } from './schema/tags';
  19. export type { CollectionTag, ScalarTag } from './schema/types';
  20. export type { YAMLOMap } from './schema/yaml-1.1/omap';
  21. export type { YAMLSet } from './schema/yaml-1.1/set';
  22. export { asyncVisitor, asyncVisitorFn, visit, visitAsync, visitor, visitorFn } from './visit.js';