export declare type IfStringLiteral = T extends string ? string extends T ? IfString : IfLiteral : IfNotString; /** * Keeps the common key in a union that are discriminants (Holds values which *are* literals) */ declare type TagsInKeys = NonNullable<{ [k in K]: undefined extends T[k] ? undefined : IfStringLiteral; }[K]>; export declare type TagsOf = TagsInKeys & string; export declare const assignFunction: (ab: F, c: C) => F & C; export declare type SelectKeyOfMatchingValues = { [k in keyof KeyedValues]: KeyedValues[k] extends Constraint ? k : never; }[keyof KeyedValues]; export declare const assignCallable: (F: F, d: D) => F & C & D; export declare const wrapFun: (g: ((a: A) => B) & X) => ((a: A) => B) & X; export interface InhabitedTypes { _E: E; _A: A; } export declare type AType> = X['_A']; export declare type EType> = X['_E']; /** * Fake inhabitation of types */ export declare const inhabitTypes: (t: T) => T & InhabitedTypes; export {};