import type { FormatCodec } from "../format-codec.js"; /** * Options for the JSONC codec. */ export interface JsoncCodecOptions { readonly indent?: number; } /** * Creates a JSONC (JSON with Comments) codec with configurable indentation. * * JSONC is a superset of JSON that allows line comments (//) and block * comments. On read, comments are stripped using jsonc-parser. On write, * standard JSON is output (comments are not preserved). * * This is the same behavior as VS Code's settings.json — comments in * hand-edited .jsonc files do not survive a save cycle. * * @param options - Optional configuration for JSONC serialization * @param options.indent - Number of spaces for indentation (default: 2) * @returns A FormatCodec for JSONC serialization * * @example * ```typescript * const codec = jsoncCodec({ indent: 4 }) * const layer = makeSerializerLayer([codec]) * ``` */ export declare const jsoncCodec: (options?: JsoncCodecOptions) => FormatCodec; //# sourceMappingURL=jsonc.d.ts.map