/**
 * Fetchable loader store - internal registry for fetchable loader functions.
 *
 * Extracted into its own module to avoid circular dependencies between
 * loader.rsc.ts and request-context.ts. This module has no imports from
 * either, so both can safely import from here.
 *
 * Populated by createLoader() in loader.rsc.ts.
 * Read by request-context.ts (for ctx.use()) and loader-registry.ts (for GET-based fetching).
 */
const fetchableLoaderRegistry = new Map();
export function registerFetchableLoader(id, fn, middleware) {
    fetchableLoaderRegistry.set(id, { fn, middleware });
}
export function getFetchableLoader(id) {
    return fetchableLoaderRegistry.get(id);
}
//# sourceMappingURL=fetchable-loader-store.js.map