import type { MemFsEditor } from '../index.js'; export default function writeJSON(this: MemFsEditor, filepath: string, contents: any, replacer?: ((this: any, key: string, value: any) => any) | (number | string)[] | null, space?: string | number): string;