import { CloudFrontRequestEvent, CloudFrontRequestResult } from 'aws-lambda';

interface BaseContext {
    bucketName: string;
    region: string;
}
interface RequestHandlerContext extends BaseContext {
    allowAccessCluster: boolean;
}

declare function createOriginRequestHandler(context: RequestHandlerContext): (event: CloudFrontRequestEvent) => Promise<CloudFrontRequestResult>;
declare const handler: (event: CloudFrontRequestEvent) => Promise<CloudFrontRequestResult>;

export { createOriginRequestHandler, handler };
