UNPKG

tooner

Version:

Token-efficient serialization for LLMs - Convert JSON/YAML/TOML to TOON format

15 lines (11 loc) 547 B
import { T as ToonValue, E as EncodeOptions, D as DecodeOptions } from './types-C_0Zea-f.js'; export { b as ToonArray, f as ToonDecodeError, e as ToonEncodeError, d as ToonError, a as ToonObject, c as ToonPrimitive } from './types-C_0Zea-f.js'; /** * Encode a value to TOON format */ declare function encode(value: ToonValue, options?: EncodeOptions): string; /** * Decode TOON format to value */ declare function decode(toon: string, options?: DecodeOptions): ToonValue; export { DecodeOptions, EncodeOptions, ToonValue, decode, encode };