/** * A type guard to check if an object is a Promise (or a "thenable"). It checks * if the object is not null, is an object, and has a callable .then method. * * Note that if the Promise expects a certain type like `Promise`, there is * no way to validate the type of T unless we resolve the promise. This function * does not attempt to typecheck for T in any way. */ declare function isPromise(obj: unknown): obj is Promise; /** * A type guard to check if an object is a native Promise. * * Note that if the Promise expects a certain type like `Promise`, there is * no way to validate the type of T unless we resolve the promise. This function * does not attempt to typecheck for T in any way. */ declare function isNativePromise(obj: unknown): obj is Promise; export { isNativePromise, isPromise };