export function mapKeys(record, transformer) {
    const ret = {};
    const keys = Object.keys(record);
    for (const key of keys) {
        const mappedKey = transformer(key);
        ret[mappedKey] = record[key];
    }
    return ret;
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFwX2tleXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJtYXBfa2V5cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUF3QkEsTUFBTSxVQUFVLE9BQU8sQ0FDckIsTUFBbUMsRUFDbkMsV0FBb0M7SUFFcEMsTUFBTSxHQUFHLEdBQXNCLEVBQUUsQ0FBQztJQUNsQyxNQUFNLElBQUksR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBRWpDLEtBQUssTUFBTSxHQUFHLElBQUksSUFBSSxFQUFFO1FBQ3RCLE1BQU0sU0FBUyxHQUFHLFdBQVcsQ0FBQyxHQUFHLENBQUMsQ0FBQztRQUVuQyxHQUFHLENBQUMsU0FBUyxDQUFDLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0tBQzlCO0lBRUQsT0FBTyxHQUFHLENBQUM7QUFDYixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gQ29weXJpZ2h0IDIwMTgtMjAyMSB0aGUgRGVubyBhdXRob3JzLiBBbGwgcmlnaHRzIHJlc2VydmVkLiBNSVQgbGljZW5zZS5cbi8vIFRoaXMgbW9kdWxlIGlzIGJyb3dzZXIgY29tcGF0aWJsZS5cblxuLyoqXG4gKiBBcHBsaWVzIHRoZSBnaXZlbiB0cmFuc2Zvcm1lciB0byBhbGwga2V5cyBpbiB0aGUgZ2l2ZW4gcmVjb3JkJ3MgZW50cmllcyBhbmQgcmV0dXJucyBhIG5ldyByZWNvcmQgY29udGFpbmluZyB0aGVcbiAqIHRyYW5zZm9ybWVkIGVudHJpZXMuXG4gKlxuICogSWYgdGhlIHRyYW5zZm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