import type { UnionToIntersection } from 'type-fest'; export type IsUnion = [T] extends [UnionToIntersection] ? false : true; export type NotUnion = true extends IsUnion ? never : T; export declare function promisy(t: T | (() => T) | (() => Promise)): () => Promise;