import { LambdaHttpRequest, LambdaHttpResponse } from '@linzjs/lambda';
export declare class AssetProvider {
    /**
     * Assets can be ready from the following locations.
     *
     * /home/blacha/config/build/assets # Local File
     * /home/blacha/config/build/assets.tar.co # Local Cotar
     * s3://linz-baesmaps/assets/ # Remote location
     * s3://linz-basemaps/assets/assets-b4ff211a.tar.co # Remote Cotar
     */
    get(url: URL, fileName: string): Promise<Buffer | null>;
    getFromCotar(path: URL, fileName: string): Promise<Buffer | null>;
    /**
     *  Load a assets from local path or 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
     */
    serve(req: LambdaHttpRequest, file: string, contentType: string): Promise<LambdaHttpResponse>;
}
export declare const assetProvider: AssetProvider;
