export type TIsObjPromiseArgs = Parameters; export type TIsObjPromiseReturn = ReturnType; /** * Checks if an object is promise * @param obj{*} source object * @returns {boolean} * @example * // How to check if an object is promise? * const obj = new Promise(() => {}); * const isPromise = isObjPromise(obj); * console.log(isPromise); // => true * @example * // Normalize a handler that can return either a value or a Promise * const result = plugin.run(); * const value = isObjPromise(result) ? await result : result; */ export declare const isObjPromise: (obj: unknown) => obj is Promise;