import { EntryAdapterProps, GenericEntry } from "./types.cjs"; //#region src/EntryAdapter/utils.d.ts /** * Returns a preloaded server entry or registers its async loader for a later * SSR pass. * * On the first collection render, the loader is queued through * `registerAsyncTask` and the function returns `undefined`. After * `resolveAsyncTasks` runs, subsequent render passes receive the resolved * server entry from {@link preloadedSSREntries}. * * @param loader - Optional async server-entry loader. * @returns The resolved server entry when available. */ declare function getServerEntry(loader?: EntryAdapterProps['ssrEntry']): GenericEntry | undefined; /** * Renders the server side of {@link import('./EntryAdapter').EntryAdapter}. * * The function preserves the client/server bundle split by registering the * async server entry loader during the collection pass, then rendering the * loaded server entry on later SSR passes. The returned string is the SSR * placeholder id that will be replaced by `getComposedSSR`. * * When no async loader is provided, the regular `entry` is used on the server. * This supports frameworks that share one entry renderer across client and SSR. * * @param entry - Entry used as the server renderer when no `ssrEntry` loader is provided. * @param loader - Optional async server-entry loader. * @param props - Props merged into the active entry `initData`. * @returns SSR placeholder id, or `null` while waiting for the async server entry. */ declare function renderServerEntryAdapter(entry: GenericEntry, loader: EntryAdapterProps['ssrEntry'], props: Record): string | null; //#endregion export { getServerEntry, renderServerEntryAdapter }; //# sourceMappingURL=utils.d.cts.map