pairs.d.ts 741 B

12345678910
  1. import type { CreateNodeContext } from '../../doc/createNode.js';
  2. import type { ParsedNode } from '../../nodes/Node.js';
  3. import { Pair } from '../../nodes/Pair.js';
  4. import { YAMLMap } from '../../nodes/YAMLMap.js';
  5. import { YAMLSeq } from '../../nodes/YAMLSeq.js';
  6. import type { Schema } from '../../schema/Schema.js';
  7. import type { CollectionTag } from '../types.js';
  8. export declare function resolvePairs(seq: YAMLSeq.Parsed<ParsedNode | Pair<ParsedNode, ParsedNode | null>> | YAMLMap.Parsed, onError: (message: string) => void): YAMLSeq.Parsed<Pair<ParsedNode, ParsedNode | null>>;
  9. export declare function createPairs(schema: Schema, iterable: unknown, ctx: CreateNodeContext): YAMLSeq<unknown>;
  10. export declare const pairs: CollectionTag;