// eslint-disable-next-line @definitelytyped/no-self-import import Mixin from "@ember/object/mixin"; import RSVP from "rsvp"; /** * A low level mixin making ObjectProxy promise-aware. */ interface PromiseProxyMixin extends RSVP.Promise { /** * If the proxied promise is rejected this will contain the reason * provided. */ reason: unknown; /** * Once the proxied promise has settled this will become `false`. */ isPending: boolean; /** * Once the proxied promise has settled this will become `true`. */ isSettled: boolean; /** * Will become `true` if the proxied promise is rejected. */ isRejected: boolean; /** * Will become `true` if the proxied promise is fulfilled. */ isFulfilled: boolean; /** * The promise whose fulfillment value is being proxied by this object. */ promise: RSVP.Promise; } declare const PromiseProxyMixin: Mixin>; export default PromiseProxyMixin;