type NestedObj = Record; declare function matchAndRemoveKeys(obj: NestedObj, pattern?: NestedObj): NestedObj; export default matchAndRemoveKeys;