import { ChartData } from "../DonutChart/DonutChart"; type LimitDataSetReturn = { limitedData: Array>; limitedDataWithoutOthers: Array>; }; /** * Limits the data set to the given limit. * If the data set is larger than the limit, the data set is limited to the limit and the rest of the data is added to the "Others" group. * * @param data - The data set to limit. * @param limit - The limit to apply to the data set. * @param autoSortData - If true, the data will be sorted by value in descending order. * @param othersName - The name to use for the "others" category. If not provided, the default name "Others" will be used. Main use if you want to translate the "others" category. * @returns {object} The limited data set with and without the "others" category. */ export declare const useLimitDataSet: (data: Array>, limit: number, autoSortData?: boolean, othersName?: string | undefined) => LimitDataSetReturn; export {};