/** * The resolved value of T (if a promise, otherwise simply T) */ export type Awaited = T extends PromiseLike ? U : T; /** * T or null/undefined */ export type Nullable = T | null | undefined; /** * union of all fields of T * @example * ValueOf> === number */ export type ValueOf = T[keyof T]; /** * Validates s is an instance of Map * @returns true if s is a Map */ export declare const isMap: (m: any) => m is Map; /** * Validates s is an instance of Set * @returns true if s is a Set */ export declare const isSet: (s: any) => s is Set; /** * Given a value of type Nullable, validates value is T * @returns true if value is defined (not null or undefined) */ export declare function isDefined(value: Nullable): value is T; /** * Coverts and object into a Map * @param obj - POJO * @returns A map with the same entries as obj */ export declare const toMap: (obj: object) => Map; /** * Make an intersection type from union * @example * ```ts * const a:UnionToIntersection<{a:string}|{b:string}> = {a:'ok', b:'also ok'} * ``` */ export type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; //# sourceMappingURL=types.d.ts.map