import { URIS, Kind, URIS2, Kind2, HKT2 } from '../common/HKT'; import { isOptionalConfig, ByInterp } from '../common/core'; import { ObjectInterfaceConfig, ObjectPartialConfig } from '../algebras/hkt'; declare type AnyMProps = Record>; export declare const ObjectURI: unique symbol; export declare type ObjectURI = typeof ObjectURI; declare module '../algebras/hkt' { interface Algebra { [ObjectURI]: ModelAlgebraObject; } interface Algebra1 { [ObjectURI]: ModelAlgebraObject1; } interface Algebra2 { [ObjectURI]: ModelAlgebraObject2; } interface ObjectInterfaceConfig { } interface ObjectPartialConfig { } } export interface ModelAlgebraObject { interface: { >(props: Props, name: string): isOptionalConfig>; >(props: Props, name: string, config: ByInterp): HKT2; }; partial: { >(props: Props, name: string): isOptionalConfig, Partial<{ [k in keyof Props]: Props[k]['_A']; }>>>; >(props: Props, name: string, config: ByInterp): HKT2, Partial<{ [k in keyof Props]: Props[k]['_A']; }>>; }; } export declare type PropsKind1 = { [k in keyof PropsA]: Kind; }; export interface ModelAlgebraObject1 { interface: (props: PropsKind1, name: string, config?: ByInterp) => Kind; partial: (props: PropsKind1, name: string, config?: ByInterp) => Kind>; } export declare type PropsKind2 = { [k in keyof PropsA & keyof PropsE]: Kind2; }; export interface ModelAlgebraObject2 { interface: (props: PropsKind2, name: string, config: ByInterp) => Kind2; partial: (props: PropsKind2, name: string, config: ByInterp) => Kind2, Partial>; } export {};