/** F15 — Interop monomers: MC_120–MC_127 */ /** MC_120 — JSON_ENCODE: serialize value to JSON string. */ export const jsonEncode = (value: unknown): string => JSON.stringify(value); /** MC_121 — JSON_DECODE: parse JSON string to value. */ export const jsonDecode = (json: string): unknown => JSON.parse(json); // Extended monomer stub — runtime implementation pending /** MC_122 — FFI_CALL */ export const ffiCall = (_handle: number, _fn: string, ..._args: number[]): number => { throw new Error('FFI_CALL: runtime implementation pending'); }; /** MC_123 — FFI_LOAD */ export const ffiLoad = (_path: string): number => { throw new Error('FFI_LOAD: runtime implementation pending'); }; /** MC_124 — FFI_FREE */ export const ffiFree = (_handle: number): void => { throw new Error('FFI_FREE: runtime implementation pending'); }; /** MC_125 — WASM_LOAD */ export const wasmLoad = (_bytes: Uint8Array): number => { throw new Error('WASM_LOAD: runtime implementation pending'); }; /** MC_126 — WASM_CALL */ export const wasmCall = (_mod: number, _fn: string, ..._args: number[]): number => { throw new Error('WASM_CALL: runtime implementation pending'); }; /** MC_127 — WASM_FREE */ export const wasmFree = (_mod: number): void => { throw new Error('WASM_FREE: runtime implementation pending'); };