import { InertiaAppSSRResponse, Page } from '@inertiajs/core'; import { CreateLatticeAppOptions } from './create-app.js'; /** * Build an SSR entry's render function from the same options as `createLatticeApp`. * `@inertiajs/vite` only auto-wraps literal `createInertiaApp` calls, so a Lattice * app declares its own `resources/js/ssr.tsx`: * * import createServer from "@inertiajs/react/server"; * import { createLatticeSsr } from "@lattice-php/lattice/ssr"; * * createServer(createLatticeSsr({ ...same options as app.tsx })); * * The plugin rewrites that `createServer` call into the dev-server default * export plus the production HTTP bootstrap; where the bootstrap is unwanted, * `export default createLatticeSsr(...)` works as-is. * * Own subpath on purpose: importing react-dom/server from the client bundle * would drag the server renderer into the app. */ export declare function createLatticeSsr(options?: CreateLatticeAppOptions): (page: Page) => Promise;