/** * Whether {@link useLoadDynamic} already holds an entry for `key` (pending or * settled). A missing entry means the next read will start a load and suspend. */ export declare const hasDynamicEntry: (key: string) => boolean; export declare const useLoadDynamic: (key: string, promise: Promise) => T; /** * Fills the same cache {@link useLoadDynamic} reads, ahead of render. * * A component that reads a dictionary during render suspends whenever the entry * is still `pending`, and the nearest boundary shows its fallback. Awaiting this * before the render — in a router loader, or during app startup — makes that * read synchronous, so no boundary ever falls back. * * Handing over an already-resolved promise is not enough on its own: * {@link createSuspender} only leaves `pending` inside a `.then` callback, so * the first read would still suspend for one microtask. Awaiting the returned * promise resolves that race, because the callback registered by * `createSuspender` runs before this one. * * @param key - Cache key, identical to the one the later read uses. * @param loader - Invoked only when the key is not cached yet, so preloading a * dictionary twice never issues a second request. * @returns A promise that settles — never rejects — once the entry is readable. */ export declare const preloadDynamic: (key: string, loader: () => Promise) => Promise; //# sourceMappingURL=useLoadDynamic.d.ts.map