/**
 * Sorts an array of objects by a specific date property.
 *
 * @template T - The type of the objects in the array.
 *
 * @param {T[]} data - The array of objects to sort.
 * @param {keyof T} key - The key (property name) in the object that holds the date value.
 * @returns {T[]} The sorted array of objects.
 *
 * @example
 * const data = [
 *   { name: "Event 1", date: "2023-05-01" },
 *   { name: "Event 2", date: "2024-03-01" },
 * ];
 * const sortedData = sortByDate(data, "date");
 * console.log(sortedData);
 */
export declare const sortByDate: <T>(data: T[], key: keyof T) => T[];
