/// <reference types="node" />
import { UrlWithParsedQuery } from "url";
import { IncomingMessage, ServerResponse } from "http";
import { ImagesManifest } from "../types";
declare type ImageOptimizerResponse = {
    finished: boolean;
};
export declare function imageOptimizer({ basePath, bucketName, region }: {
    basePath: string;
    bucketName: string;
    region: string;
}, imagesManifest: ImagesManifest | undefined, req: IncomingMessage, res: ServerResponse, parsedUrl: UrlWithParsedQuery): Promise<ImageOptimizerResponse>;
export declare function getMaxAge(str: string | null): number;
export {};
