UNPKG

zon-format

Version:

ZON: The most token-efficient serialization format for LLMs - beats CSV, TOON, JSON, and all competitors

16 lines (15 loc) 507 B
/** * Quotes a string for ZON format if necessary. * * @param s - The string to quote * @returns The quoted string */ export declare function quoteString(s: string): string; /** * Parses a ZON value string into its corresponding primitive type. * Handles booleans, nulls, numbers, arrays, objects, and quoted strings. * * @param val - The string value to parse * @returns The parsed value (boolean, null, number, array, object, or string) */ export declare function parseValue(val: string): any;