/** * The two conversions the `toon` CLI performs, over the canonical event-stream * codec: JSON to TOON and TOON back to JSON. Results go to stdout or to * `--output`; every diagnostic goes to stderr, so a pipeline stays clean. */ import { type CliIo, type InputSource } from './io.js'; export interface ConversionConfig { input: InputSource; output?: string; indentSize: number; io: CliIo; } export declare function encodeToToon(config: ConversionConfig & { delimiter: ',' | '|' | '\t'; shouldPrintStats: boolean; }): Promise; export declare function decodeToJson(config: ConversionConfig & { strict: boolean; }): Promise; /** * Validates the input without producing a result: stdout stays empty and the * verdict goes to stderr, so `toon --check` gates a pipeline on its exit code. * TOON is decoded in full; JSON is parsed and encoded, proving it is TOON-able. */ export declare function checkInput(config: { input: InputSource; mode: 'encode' | 'decode'; delimiter: ',' | '|' | '\t'; indentSize: number; strict: boolean; io: CliIo; }): Promise;