export = extendPromise; /** * Extends a {@link Promise} by injecting custom properties using a {@link Proxy}. The * custom properties will be available on the promise chain no matter how many `then`s, * `catch`s or `finally`s are added. * * @param {Promise} promise The promise to extend. * @param {Object} properties A dictionary of custom properties to _inject_ in the * promise chain. * @returns {Proxy} * @throws {Error} If `promise` is not a valid instance of {@link Promise}. * @throws {Error} If `properties` is not an object or if it doesn't have any * properties. * @tutorial extendPromise */ declare function extendPromise(promise: Promise, properties: any): ProxyConstructor;