import { LazyError } from "../error/index.ts"; export type JsonReplacer = (key: string, value: unknown) => unknown; export declare function fromJson(input: string, replacer?: JsonReplacer): [T, null] | [null, LazyError]; export declare function toJson(input: unknown, replacer?: JsonReplacer, space?: number | string): [string, null] | [null, LazyError];