/** * A Promise factory that can be awaited outside of the calling context of the * Promise. This is useful for coordinating two unconnected processes around * the completion of a Promise's underlying task. */ export interface SharedPromise { promise: Promise; run: () => Promise; } /** * Creates a {@link SharedPromise} based on the return value of `callback`. * @param callback Function that returns a Promise * @returns SharedPromise */ export declare function makeSharedPromise(callback: () => Promise): SharedPromise; //# sourceMappingURL=promise-utils.d.ts.map