interface CommonOptions { fallback?: string; throw?: boolean; } interface StringifyOptions extends CommonOptions { replacer?: (this: any, key: string, value: any) => any; space?: string | number; } type FnResponse = K extends string ? string : (K["fallback"] extends string ? string : (K["throw"] extends true ? string : string | null)); export declare function jsonStringify(payload: any, options?: K): FnResponse; export declare function jsonParse(payload: string, throwExceptions?: E): E extends true ? T : T | null; export {};