/** * @jorvel/runtime — `use(promise)` for React 18. * * React 19 ships `use()`; on 18 this is the same ergonomic: read a promise * during render — suspend while pending, return the value when resolved, throw * to the nearest error boundary on rejection. Results are memoized on the * promise object itself (via a WeakMap) so re-renders don't re-suspend. * * Pair with a `` boundary (and, ideally, a stable promise — create it * in a loader / cache, not inline in render). */ /** * Read a promise during render. Throws the promise while pending (Suspense), * returns the resolved value, or throws the rejection (ErrorBoundary). */ export declare function use(promise: Promise): T; /** Alias for teams that prefer an explicit hook-ish name. */ export declare const usePromise: typeof use; //# sourceMappingURL=use-promise.d.ts.map