import { DivAttributes, Props } from '../../utils/types';
import { OverlayProps } from '../Overlay';
import { DropdownProps } from '../Dropdown';
export declare const rootId = "ROOT_ID";
export declare type Action = {
    type: 'highlight';
    option: FlyoutOption;
} | {
    type: 'expand';
    option: FlyoutOption;
} | {
    type: 'collapse';
    option: FlyoutOption;
} | {
    type: 'close';
} | {
    type: 'open';
} | {
    type: 'setMouseOver';
    isMouseOver: boolean;
} | {
    type: 'setFocused';
    isFocused: boolean;
};
declare type ExpandedItem = FlyoutOptionId;
export declare type State = {
    /**
     * @since 10.19.0
     */
    highlighted: FlyoutOption;
    /**
     * @since 10.19.0
     */
    expanded: ExpandedItem[];
    /**
     * @since 10.19.0
     */
    options: FlyoutOption[];
    /**
     * @since 10.19.0
     */
    isMouseOver: boolean;
    /**
     * @since 10.19.0
     */
    isFocused: boolean;
    /**
     * @since 10.19.0
     */
    isOpen: boolean;
};
export interface DropdownOption {
    /**
     * @since 10.19.0
     */
    value: any;
    /**
     * @since 10.19.0
     */
    label: string;
    /**
     * @since 10.19.0
     */
    children?: DropdownOption[];
}
declare type OptionId = string;
export interface FlyoutOption {
    /**
     * @since 10.19.0
     */
    id: OptionId;
    /**
     * @since 10.19.0
     */
    parentId: OptionId | typeof rootId;
    /**
     * @since 10.19.0
     */
    origin: DropdownOption;
    /**
     * @since 10.19.0
     */
    children?: FlyoutOption[];
}
export declare type FlyoutOptionId = FlyoutOption['id'] | typeof rootId;
export interface FlyoutCaptionProps extends DivAttributes {
    /**
     * @since 10.19.0
     */
    option: DropdownOption;
    /**
     * @since 10.19.0
     */
    highlighted: boolean;
    /**
     * @since 10.19.0
     */
    optionRenderer: (option: DropdownOption) => React.ReactNode;
}
export interface FlyoutListProps {
    /**
     * @since 10.19.0
     */
    options: FlyoutOption[];
    /**
     * @since 10.19.0
     */
    targetRef: OverlayProps['targetRef'];
    /**
     * @since 10.19.0
     */
    overlayRef: OverlayProps['overlayRef'];
    /**
     * @since 10.19.0
     */
    placement: OverlayProps['placement'];
    /**
     * @since 10.19.0
     */
    padding?: OverlayProps['padding'];
    /**
     * @since 10.19.0
     */
    container?: HTMLElement;
}
export interface DropdownFlyoutProps extends Omit<DivAttributes, 'onClick'> {
    /**
     * @since 10.19.0
     */
    disabled?: DropdownProps['disabled'];
    /**
     * The text of the button.
     * @since 10.19.0
     */
    label?: DropdownProps['label'];
    /**
     * @since 10.19.0
     */
    loading?: DropdownProps['loading'];
    /**
     * The icon of the button.
     * @since 10.19.0
     */
    icon?: DropdownProps['icon'];
    /**
     * <div>
     *  Data of the dropdown options - <Code>Option[]</Code>
     *  <CodeBlock>
     *    {`type Option = { label: string; children?: Option[] }`}
     *  </CodeBlock>
     * </div>
     * @since 10.19.0
     */
    options: DropdownOption[];
    /**
     * <div>
     *  Callback for click on dropdown option
     *  <CodeBlock>{'(option: Option) => void'}</CodeBlock>
     * </div>
     * @since 10.19.0
     */
    onClick?: (option: DropdownOption) => void;
    /**
     * <div>
     *  Render prop to specify custom dropdown option content
     *  <CodeBlock>{'(option: Option) => ReactNode'}</CodeBlock>
     * </div>
     * @since 10.19.0
     */
    optionRenderer?: (option: DropdownOption) => React.ReactNode;
    /**
     * @default 'right-bottom'
     * @since 10.19.0
     */
    placement?: OverlayProps['placement'];
    /**
     * The button size
     * @default 'md'
     * @since 10.19.0
     */
    size?: DropdownProps['size'];
    /**
     * @default 'secondary'
     * @since 10.19.0
     */
    variant?: DropdownProps['variant'];
}
export interface FlyoutItemProps extends Props {
    /**
     * @since 10.19.0
     */
    option: FlyoutOption;
    /**
     * @since 10.19.0
     */
    container?: HTMLElement;
    /**
     * @since 10.19.0
     */
    placement: OverlayProps['placement'];
}
export {};
