import { type ParseOptions } from '@amritk/yaml'; export type ParseYamlStrictOptions = ParseOptions & { /** * What the file is required to be, for the multi-document message — `an * AsyncAPI document`, `a $ref target` — so the reader learns why a perfectly * valid YAML stream was refused. */ what: string; /** * Join the listed problems into one line (`; `) instead of one ` - ` bullet * per line. For reports that print one line per finding, where a line break * in the message would read as a new, unlabelled finding. */ singleLine?: boolean; }; /** * Parses `text` as a single YAML document and returns its value, throwing * instead of handing back anything the parser had to guess at. * * `@amritk/yaml` collects problems rather than throwing, and `parse` returns * the salvage of a malformed document as if it were fine — an unclosed `[` * swallows the lines after it into a bogus key, and the caller builds on data * the file does not contain. It also reads only the first document of a `---` * stream, flagging the rest with a `MULTIPLE_DOCUMENTS` warning, so a file * whose second half silently vanished would be reported as a success. Both are * turned into an error here, naming `location` and each problem's `line:col`. */ export declare const parseYamlStrict: (text: string, location: string, options: ParseYamlStrictOptions) => unknown;