securityos/node_modules/next/dist/server/serve-static.d.ts

8 lines
463 B
TypeScript
Raw Permalink Normal View History

2024-09-06 15:32:35 +00:00
/// <reference types="node" />
/// <reference types="send" />
import type { IncomingMessage, ServerResponse } from 'http';
import send from 'next/dist/compiled/send';
export declare function serveStatic(req: IncomingMessage, res: ServerResponse, path: string, opts?: Parameters<typeof send>[2]): Promise<void>;
export declare function getContentType(extWithoutDot: string): string | null;
export declare function getExtension(contentType: string): string | null;