/** * Filters properties of objects in an array based on the specified properties. * @param {Record []} data The array of objects to filter. * @param {string} requestedProperties The array of property names to include in the result. * @returns {object[]} An array of objects with only the specified properties. */ export default function filterProperties(data: Record[], requestedProperties: string[]): object[];