securityos/node_modules/next/dist/server/async-storage/request-async-storage-wrapp...

14 lines
710 B
TypeScript

/// <reference types="node" />
import type { BaseNextRequest, BaseNextResponse } from '../base-http';
import type { IncomingMessage, ServerResponse } from 'http';
import type { RequestStore } from '../../client/components/request-async-storage.external';
import type { RenderOpts } from '../app-render/types';
import type { AsyncStorageWrapper } from './async-storage-wrapper';
import type { NextRequest } from '../web/spec-extension/request';
export type RequestContext = {
req: IncomingMessage | BaseNextRequest | NextRequest;
res?: ServerResponse | BaseNextResponse;
renderOpts?: RenderOpts;
};
export declare const RequestAsyncStorageWrapper: AsyncStorageWrapper<RequestStore, RequestContext>;