import { Eq } from 'fp-ts/lib/Eq'; import { Show } from 'fp-ts/lib/Show'; import { Arbitrary } from 'fast-check/*'; import { Type } from 'io-ts'; import { JSONSchema } from '../json-schema/json-schema'; import { Materialized, ProgramInterpreter } from '../usage/materializer'; import { ProgramNoUnionURI } from './program-no-union'; import * as E from 'fp-ts/lib/Either'; import { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray'; import { NamedSchemas } from '../json-schema-interpreters'; import { Summoners } from '../usage/summoner'; import { JsonSchemaError } from '../json-schema/json-schema-ctors'; import { ProgramType } from '../usage/ProgramType'; interface ESBASTJInterpreter { build: (a: A) => A; eq: Eq; show: Show; arb: Arbitrary; strictType: Type; type: Type; jsonSchema: E.Either, [JSONSchema, NamedSchemas]>; } export declare const ESBASTJInterpreterURI: unique symbol; export declare type ESBASTJInterpreterURI = typeof ESBASTJInterpreterURI; export declare const ESBASTJInterpreter: ProgramInterpreter; declare module '../usage/InterpreterResult' { interface InterpreterResult { [ESBASTJInterpreterURI]: ESBASTJInterpreter; } } declare module '../usage/ProgramType' { interface ProgramNoUnionInterpreters { [ESBASTJInterpreterURI]: Summoner; } } /** Type level override to keep Morph type name short */ export interface M extends Materialized { } export interface UM extends Materialized { } export declare const AsOpaque: (x: M) => M; export declare const AsUOpaque: (x: UM) => UM; export interface MorphAs { (F: ProgramType[ProgramNoUnionURI]): M; } export interface MorphAsA { (): (F: ProgramType[ProgramNoUnionURI]) => M; } export interface MorphAsL { (): (F: ProgramType[ProgramNoUnionURI]) => M; } export interface Morph { (F: ProgramType[ProgramNoUnionURI]): UM; } export interface Summoner extends Summoners { summonAs: MorphAs; summonAsA: MorphAsA; summonAsL: MorphAsL; summon: Morph; } export {};