UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

9 lines (8 loc) 770 B
import { createFlowMappingItem } from "../factories/flow-mapping-item.js"; import { createMappingItem } from "../factories/mapping-item.js"; import { Context } from "../transform.js"; import { FlowMappingItem, MappingItem } from "../types.js"; import * as YAML from "../yaml.js"; import { Range } from "./range.js"; export declare function transformAstPair(pair: YAML.ast.Pair | YAML.ast.Merge, context: Context, createNode: typeof createMappingItem, additionalKeyRange: null | Range, additionalValueRange: null | Range): MappingItem; export declare function transformAstPair(pair: YAML.ast.Pair | YAML.ast.Merge, context: Context, createNode: typeof createFlowMappingItem, additionalKeyRange: null | Range, additionalValueRange: null | Range): FlowMappingItem;