import { type ReactNode } from "react"; export interface DropdownMenuProps { /** * The controlled open state of the dropdown menu. * Must be used in conjunction with onOpenChange */ open?: boolean; /** * Event handler called when the open state of the dropdown menu changes. */ onOpenChange?: (open: boolean) => void; /** * When set to true, interaction with outside elements will be disabled. * Only menu content will be visible to screen readers */ modal?: boolean; children: ReactNode; } export declare function DropdownMenu(props: DropdownMenuProps): JSX.Element; interface DropdownMenuTriggerProps { disabled?: boolean; children: ReactNode; } export declare function DropdownMenuTrigger(props: DropdownMenuTriggerProps): JSX.Element; export interface DropdownMenuContentProps { align?: "center" | "end" | "start"; side?: "bottom" | "left" | "right" | "top"; sideOffset?: number; minWidth?: 128 | 256 | "full-trigger-width"; children: ReactNode; asPortal?: boolean; maxHeight?: 256 | 400; /** * Whether the content should avoid collisions with the viewport * @default true */ avoidCollisions?: boolean; /** * The distance in pixels from the boundary edges where collision * detection should occur * @default 0 */ collisionPadding?: 0 | 8; /** * Whether the content has a border * @default true */ border?: boolean; /** * When true, surrounds the dropdown content children with a radix primitive * focus scope. Ensures children can grab focus from * dropdown content when needed. https://github.com/radix-ui/primitives/issues/922#issuecomment-948366132 * @default false */ childrenFocusScope?: boolean; } export declare const DropdownMenuContent: (props: DropdownMenuContentProps & import("react").RefAttributes) => import("react").ReactElement> | null; interface DropdownMenuItemProps { children: ReactNode; disabled?: boolean; onSelect?: (event: Event) => void; textValue?: string; endIcon?: ReactNode; startIcon?: ReactNode; renderStartIcon?: (icon: ReactNode) => ReactNode; color?: "grey" | "tomato" | undefined; description?: ReactNode; readOnly?: boolean; endAdornment?: ReactNode; /** * For progress step use-case, * mandatory to pass the boolean value for each item, even if `false`. */ completed?: boolean; onMouseOverChange?: (isMouseOver: boolean) => void; renderTooltip?: (node: ReactNode) => ReactNode; } export declare const DropdownMenuItem: (props: DropdownMenuItemProps & import("react").RefAttributes) => import("react").ReactElement> | null; interface DropdownMenuLabelProps { children: ReactNode; } export declare function DropdownMenuLabel({ children }: DropdownMenuLabelProps): JSX.Element; export {};