/** * Interprets a schema to parse a JSON string, and decode to a domain object. * * @since 1.1.0 */ import * as E from 'fp-ts/Either'; import { DecodeError } from 'schemata-ts/base/DecoderBase'; import { SchemaExt } from 'schemata-ts/SchemaExt'; /** * @since 1.1.0 * @category Model */ export declare class ParseError { readonly error: unknown; /** @since 1.1.0 */ readonly _tag = "ParseError"; constructor(error: unknown); } /** * @since 1.1.0 * @category Model */ export interface JsonDeserializer { readonly parse: (a: string) => E.Either; } /** * @since 1.1.0 * @category Guards */ export declare const isParseError: (u: unknown) => u is ParseError; /** * Interprets a schema to parse a JSON string, and decode to a domain object. * * @since 1.1.0 * @category Interpreters */ export declare const getJsonDeserializer: (schema: SchemaExt) => JsonDeserializer; //# sourceMappingURL=JsonDeserializer.d.ts.map