import type { DecodeJsonOptions, EncodeJsonOptions } from '../definitions/interfaces.js'; export declare function decodeJSON(text: string, options?: DecodeJsonOptions): T | Error; export declare function decodeJSON(text: string, options: DecodeJsonOptions | undefined, fallback: T): T; export declare function encodeJSON(value: unknown, options?: EncodeJsonOptions): string | Error; export declare function encodeJSON(value: unknown, options: EncodeJsonOptions | undefined, fallback: string): string;