/** * Creates a deferred promise, useful in scenarios where a promise needs to be created and * resolved or rejected from an external context. This exposes `resolve` and `reject` functions, * allowing external control over the promise's resolution state. * * @throws {Error} Throws an error if the promise's `resolve` or `reject` functions could not be initialized (which shouldn't occur under typical JavaScript execution). */ export declare const createDeferred: () => { promise: Promise; reject: (arg: unknown) => void; resolve: (res: PROMISE_RESOLUTION_TYPE) => void; };