/** * Interprets a schema to encode a domain object, print it safely to Json, and stringify it. * * @since 1.1.0 */ import * as E from 'fp-ts/Either'; import { JsonString } from 'schemata-ts/base/PrinterBase'; import { PrintError } from 'schemata-ts/PrintError'; import { SchemaExt } from 'schemata-ts/SchemaExt'; /** * @since 1.1.0 * @category Model */ export interface JsonSerializer { readonly print: (a: A) => E.Either; } /** * Interprets a schema to encode a domain object, print it safely to Json, and stringify it. * * @since 1.1.0 * @category Interpreters */ export declare const getJsonSerializer: (schema: SchemaExt) => JsonSerializer; //# sourceMappingURL=JsonSerializer.d.ts.map