import { SelectValue } from './types';
export declare const DropdownContext: import('react').Context<{
    type: "menu" | "select";
    value: SelectValue;
    onValueChange: ((value: SelectValue) => void) | null;
    selectedValue: SelectValue;
    setSelectedValue: (value: SelectValue) => void;
}>;
export type DropdownContextProps<T extends SelectValue> = {
    /** Type of dropdown. `menu` if the items are actions, `select` if the items are options of which one can be selected. */
    type: 'menu';
} | {
    /** Type of dropdown. `menu` if the items are actions, `select` if the items are options of which one can be selected. */
    type: 'select';
    /** Selected item's value. Can be empty if the select is multiple choice. */
    value?: T | undefined;
    /** Function that gets called when the selected item's value changes. */
    onValueChange?: (value: T) => void;
};
//# sourceMappingURL=DropdownContext.d.ts.map