export declare const useLegendItemClick: (handler: any, dataKeyExtractor?: any) => (payload: any, index: any, event: any) => void;