/// <reference types="react" />
import { ChartDataItem } from '../utils';
/**
 * 图表数据筛选 Hook
 *
 * 用于管理图表数据的筛选逻辑，包括分类筛选和 filterLabel 筛选。
 * 自动处理数据变化时的筛选状态重置。
 *
 * @param {ChartDataItem[]} data - 原始数据数组
 * @returns {object} 包含筛选后的数据、筛选选项和筛选状态的对象
 *
 * @example
 * ```typescript
 * const {
 *   filteredData,
 *   categories,
 *   filterOptions,
 *   filterLabels,
 *   selectedFilter,
 *   setSelectedFilter,
 *   selectedFilterLabel,
 *   setSelectedFilterLabel,
 *   filteredDataByFilterLabel,
 * } = useChartDataFilter(data);
 * ```
 *
 * @since 1.0.0
 */
export declare const useChartDataFilter: (data: ChartDataItem[]) => {
    filteredData: ChartDataItem[];
    categories: (string | undefined)[];
    filterOptions: {
        label: string;
        value: string;
    }[];
    filterLabels: string[] | undefined;
    selectedFilter: string;
    setSelectedFilter: import("react").Dispatch<import("react").SetStateAction<string>>;
    selectedFilterLabel: string | undefined;
    setSelectedFilterLabel: import("react").Dispatch<import("react").SetStateAction<string | undefined>>;
    filteredDataByFilterLabel: {
        key: string;
        label: string;
    }[] | undefined;
    safeData: ChartDataItem[];
};
