import type { NodeApp } from 'astro/app/node'; import type { IncomingMessage, ServerResponse } from 'http'; import type { Options } from './types'; export default function (app: NodeApp, mode: Options['mode']): (req: IncomingMessage, res: ServerResponse, next?: ((err?: unknown) => void) | undefined, locals?: object) => Promise;