/** * @file Pattern stolen from fp-ts. Type defunctionalization (as describe in [Lightweight higher-kinded polymorphism](https://www.cl.cam.ac.uk/~jdy22/papers/lightweight-higher-kinded-polymorphism.pdf)) */ /** * `* -> *` constructors * @since 2.0.0 */ export interface HKT { readonly _URI: URI; readonly _A: A; } /** * `* -> * -> *` constructors * @since 2.0.0 */ export interface HKT2 extends HKT { readonly _E: E; } /** * `* -> *` constructors * @since 2.0.0 */ export interface URItoKind { _A: A; } /** * `* -> * -> *` constructors * @since 2.0.0 */ export interface URItoKind2 { _E: E; } /** * `* -> *` constructors * @since 2.0.0 */ export declare type URIS = Exclude, '_A'>; /** * `* -> * -> *` constructors * @since 2.0.0 */ export declare type URIS2 = Exclude, '_E'>; /** * `* -> *` constructors * @since 2.0.0 */ export declare type Kind = URI extends URIS ? URItoKind[URI] : any; /** * `* -> * -> *` constructors * @since 2.0.0 */ export declare type Kind2 = URI extends URIS2 ? URItoKind2[URI] : any;