## API Report File for "@qwik.dev/router"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

import type { ClientConn } from '@qwik.dev/router/middleware/request-handler';
import type { Http2ServerRequest } from 'node:http2';
import type { IncomingMessage } from 'node:http';
import type { ServerRenderOptions } from '@qwik.dev/router/middleware/request-handler';
import type { ServerResponse } from 'node:http';

// @public @deprecated (undocumented)
export const createQwikCity: typeof createQwikRouter;

// @public (undocumented)
export function createQwikRouter(opts: QwikRouterNodeRequestOptions | QwikCityNodeRequestOptions): QwikRouterNodeMiddleware;

// @public (undocumented)
export interface NodeRequestNextFunction {
    // (undocumented)
    (err?: any): void;
}

// @public (undocumented)
export interface PlatformNode {
    // (undocumented)
    incomingMessage?: IncomingMessage | Http2ServerRequest;
    // (undocumented)
    node?: string;
    // (undocumented)
    ssr?: true;
}

// @public @deprecated (undocumented)
export type QwikCityNodeRequestOptions = QwikRouterNodeRequestOptions;

// @public (undocumented)
export interface QwikRouterNodeMiddleware {
    // @deprecated (undocumented)
    notFound: (req: IncomingMessage | Http2ServerRequest, res: ServerResponse, next: (e: any) => void) => Promise<void>;
    // (undocumented)
    router: (req: IncomingMessage | Http2ServerRequest, res: ServerResponse, next: NodeRequestNextFunction, limits?: QwikRouterNodeRequestLimits) => Promise<void>;
    // (undocumented)
    staticFile: (req: IncomingMessage | Http2ServerRequest, res: ServerResponse, next: (e?: any) => void) => Promise<void>;
}

// @public (undocumented)
export interface QwikRouterNodeRequestLimits {
    bodyLimit?: number;
}

// @public (undocumented)
export interface QwikRouterNodeRequestOptions extends ServerRenderOptions {
    getClientConn?: (req: IncomingMessage | Http2ServerRequest) => ClientConn;
    getOrigin?: (req: IncomingMessage | Http2ServerRequest) => string | null;
    // @deprecated (undocumented)
    origin?: string;
    requestBodyLimit?: number;
    static?: {
        root?: string;
        cacheControl?: string;
    };
}

// (No @packageDocumentation comment for this package)

```
