import { LogConfig } from '@basemaps/shared';
import { LambdaAlbRequest, LambdaUrlRequest } from '@linzjs/lambda';
export function mockRequest(path, method = 'get', headers = {}) {
    const log = LogConfig.get();
    log.level = 'silent';
    return new LambdaAlbRequest({
        requestContext: null,
        httpMethod: method.toUpperCase(),
        path: encodeURI(path),
        headers,
        body: null,
        isBase64Encoded: false,
    }, {}, log);
}
export function mockUrlRequest(path, query = '', headers = {}, method) {
    const log = LogConfig.get();
    log.level = 'silent';
    return new LambdaUrlRequest({
        requestContext: { http: { method: method ? method.toUpperCase() : 'GET' } },
        headers,
        rawPath: encodeURI(path),
        rawQueryString: query,
        isBase64Encoded: false,
    }, {}, log);
}
export const Api = {
    key: 'd01f7w7rnhdzg0p7fyrc9v9ard1',
    header: { 'x-linz-api-key': 'd01f7w7rnhdzg0p7fyrc9v9ard1' },
};
//# sourceMappingURL=xyz.util.js.map