/// <reference types="node" />
import { RoutesManifest } from "../../types";
import { IncomingMessage, ServerResponse } from "http";
import { Params } from "next/dist/shared/lib/router/utils/route-matcher";
import { CloudFrontHeaders } from "aws-lambda/common/cloudfront";
export declare function getRewritePath({ path, queryParams, routesManifest, router, normalisedPath, cloudFrontHeaders }: {
    path: string;
    queryParams: Params;
    cloudFrontHeaders?: CloudFrontHeaders;
    routesManifest: RoutesManifest;
    router: (uri: string) => string | null;
    normalisedPath: string;
}): string | null;
export declare function isExternalRewrite(customRewrite: string): boolean;
export declare function createExternalRewriteResponse(customRewrite: string, req: IncomingMessage, res: ServerResponse): Promise<void>;
