/** * A value as PyYAML constructs it: a `bigint` is a Python `int` and a `number` is a Python `float`. * * A mapping is a `Map` because its keys keep their YAML type: a bare `NO:` key is `false`. */ export type PythonValue = null | boolean | bigint | number | string | PythonValue[] | PythonMapping; /** * A YAML mapping in document order, with each key as PyYAML constructs it. */ export type PythonMapping = Map; /** * Parses one YAML document into the value `yaml.safe_load` returns for it. * * A repeated key keeps its first position and its last value, as a Python dict assignment does. * * @throws When the document doesn't parse, or holds a timestamp or a bare `=`. */ export declare function parsePythonYAML(text: string, source?: string): PythonValue; /** * Python's `repr` of a value PyYAML constructs, as the Python loader's messages quote it. */ export declare function pythonRepr(value: PythonValue | undefined): string; /** * Python's `type(value).__name__`. */ export declare function pythonTypeName(value: PythonValue): string; //# sourceMappingURL=python-yaml.d.ts.map