/** * A port of `newtype-ts` to schemata-ts * * @since 1.4.0 */ import { Iso } from 'schemata-ts/iso'; /** * Represents a wrapped type that's not assignable to its underlying type. * * @since 1.4.0 * @category Models */ export interface Newtype { readonly _URI: URI; readonly _A: A; } /** * @since 1.4.0 * @category Type Helpers */ export declare type URIOf> = N['_URI']; /** * @since 1.4.0 * @category Type Helpers */ export declare type CarrierOf> = N['_A']; /** * @since 1.4.0 * @category Type Helpers */ export declare type CombineURIs, N2 extends Newtype>> = Newtype & URIOf, CarrierOf>; /** * @since 1.4.0 * @category Constructors */ export declare const iso: >() => Iso>; /** * @since 1.4.0 * @category Constructors */ export declare const wrap: >() => (a: CarrierOf) => Nt; /** * @since 1.4.0 * @category Destructors */ export declare const unwrap: >() => (a: Nt) => CarrierOf; //# sourceMappingURL=newtype.d.ts.map