/** * resolver-yaml — a MINIMAL, deterministic YAML/JSON reader for the artifact resolver's $ref bundler. * * The guard package has no YAML dependency; the resolver only needs to parse the constrained YAML * that appears in OpenAPI/AsyncAPI contract docs (block mappings, flow mappings, quoted keys, scalar * values, and `$ref` strings) to inline external file refs into a deterministic JSON bundle (§4.3). * It is NOT a general YAML engine — anything outside the supported subset throws, and the resolver * turns that into a `parse_error` unresolved entry (never a fabricated document). * * Determinism: plain scalars are kept as raw strings (no lossy type coercion), so parse→serialize is * byte-stable per input. */ export declare class YamlLiteError extends Error { constructor(message: string); } /** Parse a JSON or (subset) YAML document to a plain JS value. Throws YamlLiteError on unsupported input. */ export declare function parseDoc(text: string): unknown; /** Deterministic JSON serialization with recursively sorted object keys (byte-stable — §4.3, A6). */ export declare function stableStringify(value: unknown): string; //# sourceMappingURL=resolver-yaml.d.ts.map