/** * Lightweight YAML emitter and parser. * * Covers the subset of YAML used by Chant lexicons (scalars, block arrays, * nested objects, tagged values). Not a full YAML implementation — use a * dedicated library if you need anchors, multi-document streams, or * block scalars. */ export declare function emitYAML(value: unknown, indent: number): string; /** Result of parsing a YAML block. */ export interface ParseResult { value: unknown; endIndex: number; } /** * Parse a YAML document (or JSON document) into a plain object. * * Tries `JSON.parse` first; falls back to a line-based YAML parser that * handles the subset of YAML commonly found in CI configuration files. */ export declare function parseYAML(content: string): Record; /** * Parse indentation-based YAML lines into a key-value object. */ export declare function parseYAMLLines(lines: string[], startIndex: number, baseIndent: number): ParseResult; /** * Parse a block array (lines starting with `- `). */ export declare function parseYAMLArray(lines: string[], startIndex: number, baseIndent: number): ParseResult; /** * Coerce a scalar string to a typed value. */ export declare function parseScalar(value: string): unknown; //# sourceMappingURL=yaml.d.ts.map