import { LambdaHttpRequest, LambdaHttpResponse } from '@linzjs/lambda';
/**
 *  Load a cotar and look for a file inside the cotar returning the file back as a LambdaResponse
 *
 * This will also set two headers
 * - Content-Encoding if the file starts with gzip magic
 * - Content-Type from the parameter contentType
 */
export declare function serveFromCotar(req: LambdaHttpRequest, url: URL, assetPath: string, contentType: string): Promise<LambdaHttpResponse>;
/**
 * Does a buffer look like a gzipped document instead of raw json
 *
 * Determined by checking the first two bytes are the gzip magic bytes `0x1f 0x8b`
 *
 * @see https://en.wikipedia.org/wiki/Gzip
 *
 */
export declare function isGzip(b: Buffer): boolean;
