import type { CameraDeviceFormat } from 'react-native-vision-camera'; import type { Face } from '../types/types'; /** * Sort the camera formats by resolution, with the highest resolution first. * @param {CameraDeviceFormat} left - CameraDeviceFormat * @param {CameraDeviceFormat} right - CameraDeviceFormat - the right side of the comparison * @returns The difference between the two values. */ export declare const sortFormatsByResolution: (left: CameraDeviceFormat, right: CameraDeviceFormat) => number; /** * It sorts an array of objects by the distance between the object's x and y coordinates and the * given x and y coordinates, then returns the first object in the sorted array * @param {Face[]} arr - Face[] - an array of Face objects * @param {number} x - The x coordinate of the mouse * @param {number} y - number - the y coordinate of the mouse * @returns the closest face to the x and y coordinates. */ export declare const findClosest: (arr: Face[], x: number, y: number) => Face[];