import { Remove, ExtractUnion } from './utils'; import { KeysDefinition, Tagged } from '.'; export declare type CtorType> = C extends Ctors ? A : never; export declare type Of = { [key in A[Tag] & string]: (a: Remove, Tag>) => A; }; export declare type As = { [key in A[Tag] & string]: (a: Remove, Tag>) => ExtractUnion; }; export interface Ctors { of: Of; as: As; make: (a: A) => A; } export declare const Ctors: , Tag extends string>(tag: Tag) => (keys: KeysDefinition) => Ctors;