/** * Checks whether the input value is a native Promise by testing for a `.then` method. * * @param obj - The value to test. * @returns `true` if the value is a Promise, `false` otherwise. * * @dbxUtil * @dbxUtilCategory promise * @dbxUtilTags promise, type-guard, async, then, check * @dbxUtilRelated is-promise-like, as-promise */ export declare function isPromise(obj: Promise | S): obj is Promise; /** * Checks whether the input value is PromiseLike (i.e., has a `.then` method), which * includes both native Promises and custom thenables. * * @param obj - The value to test. * @returns `true` if the value is PromiseLike, `false` otherwise. * * @dbxUtil * @dbxUtilCategory promise * @dbxUtilTags promise, type-guard, async, then, thenable, check * @dbxUtilRelated is-promise, as-promise */ export declare function isPromiseLike(obj: PromiseLike | S): obj is PromiseLike;