import { ReactEntry, ReactEntryOptions } from "./types.cjs"; //#region src/createEntry/createServerEntry.d.ts /** * Creates a server-side entry object with methods for rendering React components to static markup * or to a string, useful for server-side rendering (SSR). * * @param options - Configuration options for the React entry. * @param options.Providers - Optional provider components to wrap the entry component. * @param options.initData - Initial data to be passed as props to the entry component. * @param options.waitFor - Optional array of promises to wait for before rendering the entry component. * @param options.fallback - Optional fallback component to be rendered while waiting. * * @returns A `ReactEntry` object with methods for server-side rendering. * - `mount`: A method to render the entry component to a static markup or a string based on `isStatic`. * If `isStatic` is true, it uses `renderToStaticMarkup`, otherwise it uses `renderToString`. * * @remarks * - The `getRenderComponent` function generates a component that includes the necessary providers, * the entry component itself, and handles the `waitFor` and `fallback` props. * - `mount` method supports server-side rendering (SSR) by generating either static markup or a string * representation of the rendered component. * * @example * // Example usage: * const serverEntry = createServerEntry({ * EntryComponent: MyComponent, * Providers: MyProviders, * initData: { someProp: 'value' }, * waitFor: [fetchData()], * fallback: , * }); * * const htmlString = serverEntry.mount({ isStatic: true }); * // `htmlString` will contain the static markup of the rendered component. */ declare function createServerEntry(options?: ReactEntryOptions): ReactEntry; //#endregion export { createServerEntry }; //# sourceMappingURL=createServerEntry.d.cts.map