/** * Determines if an element is a Promise object. * @remarks * Function used to check if an element is a Promise\ object * by validating that it is an object that contains a thenable * function and is an instance of Promise. * @example * ```typescript * isPromise(1) // false * isPromise(Promise.resolve(1)) // true * isPromise({ then: () => {} }) // false * isPromise({ then: 1 }) // false * ``` * * @param element - element of type U or Promise\ to * validate as a Promise * @returns true if element is a Promise\ object * * @public * */ export declare function isPromise(element?: U | Promise): element is Promise; //# sourceMappingURL=isPromise.d.ts.map