import { Kind, URIS, URIS2, Kind2 } from './HKT'; export declare type OfType = Kind; export declare type OfType2 = Kind2; /** * This is necessary to help fixing F type for inference */ export interface InterpreterFor { readonly InterpreterType: F; } export declare function InterpreterFor(k: F): (o: O) => InterpreterFor & O; declare type Function1 = (a: any) => any; export declare type CacheType = (f: F) => F; export declare function cacheUnaryFunction(f: F): F; export declare type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; export declare type Compact = { [K in keyof A]: A[K]; }; export declare type KeepNotUndefined = UnionToIntersection>; declare type KeepOptionalIfUndefined = UnionToIntersection>; export declare type OptionalIfUndefined = Compact & KeepOptionalIfUndefined>; /** * Expose Configuration type for (a) specific interpreter(s) types */ export declare type ByInterp = MaybeUndefinedIfOptional>; export declare type MaybeUndefinedIfOptional = keyof KeepNotUndefined extends never ? X | undefined : X; export declare type isOptionalConfig = keyof KeepNotUndefined> extends never ? Y : 'config required'; /** * generates a config wrapper: * * Example: * * ```typescript * const eqConfig = genConfig(EqURI) * ``` * * Usage: * * ```typescript * summonAs(F => F.unknown(eqConfig({ compare: 'default-circular' }))) * summonAs(F => F.unknown({...eqConfig({ compare: 'default-circular' }), ...iotsConfig(x => x)})) * ``` * */ export declare const genConfig: (uri: Uri) => ConfigWrapper; export interface ConfigWrapper { (config: T extends { [k in Uri]?: infer Config; } ? Config : never): T; } export {};