UNPKG

505 BTypeScriptView Raw
1/// <reference types="node" />
2import { IncomingMessage, ServerResponse } from 'http';
3import { UrlWithParsedQuery } from 'url';
4import { NextConfig } from '../../next-server/server/config-shared';
5import Server from './next-server';
6export declare function imageOptimizer(server: Server, req: IncomingMessage, res: ServerResponse, parsedUrl: UrlWithParsedQuery, nextConfig: NextConfig, distDir: string): Promise<{
7 finished: boolean;
8}>;
9export declare function getMaxAge(str: string | null): number;