/// <reference types="react" />
import { Component } from '../../../../shared-logic/src/Component/types';
import { DataSet } from '../../../../shared-logic/src/DataSet/types';
import * as Drilldown from '../../../../shared-logic/src/Drilldown/Drilldown';
import { QueryEngineConfig } from '../../../../shared-logic/src/QueryEngineConfig/types';
import { Result } from '../../../../shared-logic/src/Result/types';
export declare type AcceptedDrilldownAttributes = Component.PieChartAttributes | Component.BarChartAttributes | Component.HorizontalBarChartAttributes | Component.BarChartV2Attributes | Component.HorizontalBarChartV2Attributes;
export declare function useDrilldownSelection(results: (Result | null)[], attributes: AcceptedDrilldownAttributes, setAttributes: (newAttributes: AcceptedDrilldownAttributes) => void, dataSet: DataSet, queryEngineConfig: QueryEngineConfig, hasDateTimeInDimension?: boolean): {
    onDrilldownChange: ({ existingField, newField }: Drilldown.SelectedDrilldown) => void;
    setDrilldownSelections: import("react").Dispatch<import("react").SetStateAction<Drilldown.SelectedDrilldown[]>>;
    drilldownSelections: Drilldown.SelectedDrilldown[];
};
