export declare function minAndMax(arr: Array, compare?: (a: T, b: T) => boolean): { min: T; max: T; };