import React from 'react'; import { ErrorManagement } from '../../types/general'; import { ColorDescriptor } from '@veupathdb/coreui/dist/components/theming/types'; export declare type PieControlsProps = { /** Label for control panel. Optional. */ label?: string; /** Whether or not to display the plot legend. */ displayLegend: boolean; /** Action to take on display legend change. */ toggleDisplayLegend: (displayLegend: boolean) => void; /** Whether or not to display the additionally controls that * may be provided by the charting library used to generate the plot. * For example, Plot.ly controls.*/ displayLibraryControls: boolean; /** Action to take on display library controls change. */ toggleLibraryControls: (displayLegend: boolean) => void; /** Current histogram opacity. */ opacity: number; /** Function to invoke when opacity changes. */ onOpacityChange: (opacity: number) => void; /** The current orientation of the plot. */ availableUnits?: Array; /** The currently selected bin unit. */ selectedUnit?: string; /** Function to invoke when the selected bin unit changes. */ onSelectedUnitChange?: (unit: string) => void; containerStyles?: React.CSSProperties; /** Color to use as an accent in the control panel. */ accentColor?: ColorDescriptor; /** Attributes and methdods for error management. */ errorManagement: ErrorManagement; }; /** A default pie/donut plot control panel. */ export default function PieControls({ label, displayLegend, toggleDisplayLegend, displayLibraryControls, toggleLibraryControls, opacity, onOpacityChange, availableUnits, selectedUnit, onSelectedUnitChange, containerStyles, accentColor, errorManagement, }: PieControlsProps): JSX.Element; //# sourceMappingURL=PieControls.d.ts.map