/** * @fileoverview Helpers for creating entry point getPreloadProps functions. * * These helpers are used by the generated router code to wrap user-defined * getPreloadProps functions with the necessary query and entryPoint helpers. * * Type safety for users is provided by the generated types.ts file which has * fully typed EntryPointParams and QuerySpec types. This runtime helper * uses loose generic constraints to work with any shape of queries/entryPoints, * while the generated code provides the actual type safety at compile time. */ /** * Creates a wrapped getPreloadProps function for an entry point. * * This helper injects the query and entryPoints helpers into the user's * getPreloadProps function, transforming the raw params/searchParams into * the full context needed by the function. * * The generic P allows user functions to have typed params (like { name: string }) * while the runtime passes Record. This is safe because the * filesystem router guarantees the params match the route pattern. * * @param queries - Query helper functions that create query specs with parameters * @param entryPoints - Entry point helper functions that create nested entry point specs * @param userGetPreloadProps - The user's getPreloadProps function * @returns A getPreloadProps function compatible with Relay's entry point API */ export declare function createEntryPointGetPreloadProps

, Q extends object, E extends object, Result extends { queries: Record; entryPoints: Record; }>(queries: Q, entryPoints: E, userGetPreloadProps: (params: { params: P; searchParams: URLSearchParams; queries: Q; entryPoints: E; entryPointParams?: Record; }) => Result): (rawParams: { params: Record; searchParams: URLSearchParams; entryPointParams?: Record; }) => Result; //# sourceMappingURL=entrypoint_helpers.d.ts.map