import type { AccentColorOptions } from "../../../lib/colors/types";
import type { Series } from "../../../../metabase-types/api";
import { type SortableItem as SortableChartSettingOrderedItem } from "./ChartSettingOrderedItems";
export { SortableChartSettingOrderedItem };
export interface SortableItem {
    key: string;
    enabled: boolean;
    name: string;
    color?: string;
    hidden?: boolean;
    hideSettings?: boolean;
}
interface ChartSettingSeriesOrderProps {
    onChange: (rows: SortableItem[]) => void;
    value: SortableItem[];
    onShowWidget: (widget: {
        id?: string;
        props?: {
            seriesKey: string;
        };
    }, ref: HTMLElement | undefined) => void;
    series: Series;
    hasEditSettings: boolean;
    onChangeSeriesColor: (seriesKey: string, color: string) => void;
    onSortEnd: (newItems: SortableItem[]) => void;
    accentColorOptions?: AccentColorOptions;
    getItemColor?: (item: SortableChartSettingOrderedItem) => string | undefined;
    addButtonLabel?: string;
    searchPickerPlaceholder?: string;
    groupedAfterIndex?: number;
    otherColor?: string;
    otherSettingWidgetId?: string;
    onOtherColorChange?: (newColor: string) => void;
    truncateAfter?: number;
}
export declare const ChartSettingSeriesOrder: ({ onChange, value: orderedItems, addButtonLabel, searchPickerPlaceholder, onShowWidget, hasEditSettings, onChangeSeriesColor, onSortEnd, getItemColor, accentColorOptions, otherColor, groupedAfterIndex, otherSettingWidgetId, truncateAfter, onOtherColorChange, }: ChartSettingSeriesOrderProps) => import("react/jsx-runtime").JSX.Element;
