/** * @since 2.0.0 */ import { Chain, Chain1, Chain2, Chain2C, Chain3 } from './Chain' import { Either } from './Either' import { HKT, Kind, Kind2, Kind3, URIS, URIS2, URIS3 } from './HKT' /** * @category type classes * @since 2.0.0 */ export interface ChainRec extends Chain { readonly chainRec: (a: A, f: (a: A) => HKT>) => HKT } /** * @category type classes * @since 2.0.0 */ export interface ChainRec1 extends Chain1 { readonly chainRec: (a: A, f: (a: A) => Kind>) => Kind } /** * @category type classes * @since 2.0.0 */ export interface ChainRec2 extends Chain2 { readonly chainRec: (a: A, f: (a: A) => Kind2>) => Kind2 } /** * @category type classes * @since 2.0.0 */ export interface ChainRec2C extends Chain2C { readonly chainRec: (a: A, f: (a: A) => Kind2>) => Kind2 } /** * @category type classes * @since 2.0.0 */ export interface ChainRec3 extends Chain3 { readonly chainRec: (a: A, f: (a: A) => Kind3>) => Kind3 } /** * @since 2.0.0 */ export declare function tailRec(a: A, f: (a: A) => Either): B