/** * Reduces an object's key value (Date or string representation of a date) to a sortable string * * @since v0.0.1 * @category Sorting * @param {string} key - The key in the object * @param {'h' | 'm' | 's'} [depth] - Compare depth of time, h/m/s * @returns {>(obj: T) => string} * @example * sortReduceDate('stamp')({ stamp: '03/20/2020' }) * //=> '20200220' * * sortReduceDate('stamp')({ stamp: new Date(2020, 9, 7) }) * //=> '20200907' * * sortReduceDate('stamp', 's')({ stamp: '2020-10-20T14:48:25.000' }) * //=> '20200920144825' */ export declare const sortReduceDate: (key: string, depth?: 'h' | 'm' | 's') => >(obj: T) => string;