import { RequestHandler, Response, Request } from 'express'; type props = Record; export type Options = { readonly enableReload?: boolean; readonly version: string; readonly html: (page: Page, viewData: props) => string; readonly flashMessages?: (req: Request) => props; readonly csrf?: { enabled: boolean; cookieName?: string; headerName?: string; }; }; export type Page = { readonly component: string; props: props; readonly url?: string; readonly version?: string; }; export type Inertia = { readonly setViewData: (viewData: props) => Inertia; readonly shareProps: (sharedProps: props) => Inertia; readonly setStatusCode: (statusCode: number) => Inertia; readonly setHeaders: (headers: Record) => Inertia; readonly render: (Page: Page) => Promise; readonly redirect: (url: string) => Response; }; export declare const headers: { xInertia: string; xInertiaVersion: string; xInertiaLocation: string; xInertiaPartialData: string; xInertiaPartialComponent: string; xInertiaCurrentComponent: string; }; declare const inertiaExpressAdapter: (options: Options) => RequestHandler; export default inertiaExpressAdapter;