import type { FilesApi } from "../api/index.js"; /** The parts of an h3 event the binding reads; h3 1's and h3 2's `H3Event` both fit. */ export interface NitroEvent { /** h3 2: the Web `Request`. h3 1: a deprecated alias of the Node request. */ readonly req?: unknown; /** h3 1: the Node request and response. h3 2: a deprecated getter, Node only. */ readonly node?: { readonly req: unknown; readonly res?: unknown; } | undefined; /** h3 1 under `toWebHandler`: the Web `Request` it was called with. */ readonly web?: { readonly request?: Request | undefined; } | undefined; /** h3 1: the body of an in-process request. */ readonly _requestBody?: BodyInit | undefined; } export type NitroRouteHandler = (event: NitroEvent) => Promise; export declare const createRouteHandler: (router: FilesApi) => NitroRouteHandler; //# sourceMappingURL=index.d.ts.map