/** * Parses a simplified YAML-like input from a single string. * Supports objects, arrays, primitive types (string, number, boolean, null). * Tracks positions for error reporting and node locations. * * Limitations: * - No anchors or references * - No complex types (dates, binary) * - No single pair implicit entries * * @param input A string containing the YAML-like input * @param errors Array to collect parsing errors * @returns The parsed representation (YamlMapNode, YamlSequenceNode, or YamlScalarNode) */ export declare function parse(input: string, errors?: YamlParseError[], options?: ParseOptions): YamlNode | undefined; export interface YamlScalarNode { readonly type: "scalar"; readonly value: string; readonly rawValue: string; readonly startOffset: number; readonly endOffset: number; readonly format: "single" | "double" | "none" | "literal" | "folded"; } export interface YamlMapNode { readonly type: "map"; readonly properties: { key: YamlScalarNode; value: YamlNode; }[]; readonly style: "block" | "flow"; readonly startOffset: number; readonly endOffset: number; } export interface YamlSequenceNode { readonly type: "sequence"; readonly items: YamlNode[]; readonly style: "block" | "flow"; readonly startOffset: number; readonly endOffset: number; } export type YamlNode = YamlSequenceNode | YamlMapNode | YamlScalarNode; export interface YamlParseError { readonly message: string; readonly startOffset: number; readonly endOffset: number; readonly code: string; } export interface ParseOptions { readonly allowDuplicateKeys?: boolean; }