/** * @file * * Serializes a value to JSON, preserving function bodies as raw source text. */ /** * Serializes a value to JSON with function bodies included as raw source text. * * Standard `JSON.stringify` omits functions entirely. This helper replaces * each function value with a unique placeholder during stringification, * then substitutes the placeholders with the real `toString()` output. * * @param value - The value to serialize. * @returns A JSON-like string where functions appear as their source text. */ export declare function jsonWithFunctions(value: unknown): string;