import { BoundaryResult } from '../../../entities/types.js'; /** * Make an identifier that can be used to get a promise that can be waited on * @internal * * @param executeCall - the call to execute immediately. Should be a function that takes an ID that is made in the call. * @param thenRun - The handler for the result * @param reason - a string to prefix the ID with, helpful for debugging * @returns an ID that can be used in a call of `waitForResolution` to get a promise */ export declare const makeResolvableId: (executeCall: (id: string) => Promise, thenRun?: (result: BoundaryResult) => BoundaryResult, reason?: string) => string; /** * Returns a promise that you can wait on until someone calls `resolveById` * @internal * * @param id - an ID returned from `makeResolvableId` * @returns a promise that can be awaited */ export declare const waitForResolution: (id: string) => Promise; /** * Resolve the promise identified by the provided ID * @internal * * @param id - an ID returned from `makeResolvableId` */ export declare const resolveById: (id: string, result: BoundaryResult) => void; //# sourceMappingURL=promiseHandler.d.ts.map