export interface SyncInspectablePromise extends Promise { status: PromiseStatus; value?: T; reason?: unknown; } export interface SyncInspectableDeferred { promise: SyncInspectablePromise; resolve: (value: T | PromiseLike) => void; reject: (reason: unknown) => void; } export declare const PromiseStatus: { readonly PENDING: "pending"; readonly FULFILLED: "fulfilled"; readonly REJECTED: "rejected"; }; export type PromiseStatus = (typeof PromiseStatus)[keyof typeof PromiseStatus]; export type PromiseState = { status: typeof PromiseStatus.PENDING; } | { status: typeof PromiseStatus.FULFILLED; value: T; } | { status: typeof PromiseStatus.REJECTED; reason: unknown; }; export declare function inspect(promise: SyncInspectablePromise): PromiseState; export declare function resolve(value: T): SyncInspectablePromise>; export declare function reject(error: unknown): SyncInspectablePromise; export declare function defer(): SyncInspectableDeferred; //# sourceMappingURL=SyncInspectablePromise.d.ts.map