//#region src/shims/internal/app-prefetch-fetch-queue.d.ts
declare function releaseAppPrefetchFetchSlot(response: Response): void;
/**
 * Low-priority App Router prefetches share a small request queue. The consumer
 * must either snapshot the returned Response with snapshotRscResponse() or call
 * releaseAppPrefetchFetchSlot() when it drops the response without consuming it.
 */
declare function scheduleAppPrefetchFetch(fetcher: (signal: AbortSignal) => Promise<Response>, priority: "low" | "high"): Promise<Response>;
/** Cancel a queued or in-flight prefetch request. No-op once it has settled. */
declare function cancelAppPrefetchFetch(promise: Promise<Response> | undefined): void;
/**
 * Start a still-queued prefetch request immediately.
 *
 * A navigation that reuses an in-flight prefetch awaits that prefetch's
 * promise. When the request is only queued, the navigation would otherwise wait
 * for unrelated prefetch response bodies to finish before its own request even
 * starts — indefinitely if one of those streams stalls. A promoted request is
 * no longer a prefetch, it is the navigation, so it bypasses the concurrency
 * cap instead of waiting for a slot.
 *
 * No-op when the request has already started or was never queued.
 */
declare function promoteAppPrefetchFetch(promise: Promise<Response> | undefined): void;
//#endregion
export { cancelAppPrefetchFetch, promoteAppPrefetchFetch, releaseAppPrefetchFetchSlot, scheduleAppPrefetchFetch };