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