import type { ComponentPropsWithoutRef, FC, HTMLAttributes, ReactNode } from 'react';
import type { OpenStateProps, PopperContentProps, TriggerProps } from '../../utils/primitiveProps.js';
import type { SxProp } from '../Layout/sx.js';
export type MenuProps = OpenStateProps;
export declare const Menu: FC;
export type MenuTriggerProps = TriggerProps;
export declare const MenuTrigger: FC;
export interface MenuContentProps extends ComponentPropsWithoutRef<'div'> {
className?: string;
/** Preferred side of the trigger to render against. */
side?: 'top' | 'right' | 'bottom' | 'left';
/** Distance in px from the trigger. Default: 6. */
sideOffset?: number;
/** Alignment against the trigger. */
align?: 'start' | 'center' | 'end';
/** Offset in px from the aligned edge. */
alignOffset?: number;
/** Visual size — controls padding + font size. Default: `md`. */
size?: 'sm' | 'md';
/**
* One-off CSS for the menu content panel, same as `Box`'s `sx`: each value
* may be a scalar or a responsive breakpoint map (`{ base, sm, md, lg, xl }`).
* Scalar-only sx merges into inline style; responsive sx injects a scoped class.
*/
sx?: SxProp;
}
/**
* The popup panel. Wrap in `` and pair with ``.
*
* @example
*
* Actions
*
* Edit
*
* Delete
*
*
*/
export declare const MenuContent: import("react").ForwardRefExoticComponent>;
export interface MenuItemProps extends Omit, 'onSelect'> {
/** Disable selecting this item. */
disabled?: boolean;
/** Fires when the item is selected (click or Enter). */
onSelect?: (event: Event) => void;
/** Optional text used for typeahead matching. */
textValue?: string;
/** Leading icon. */
icon?: ReactNode;
/** Right-aligned shortcut hint (e.g. `⌘C`). */
shortcut?: ReactNode;
/** Apply danger styling (red text, danger hover). */
destructive?: boolean;
/**
* Render the single child (e.g. Next ` `) as the item, so a menu entry can
* be a real link (client-side routing, middle-click). The child's own children become
* the label.
*/
asChild?: boolean;
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
}
export declare const MenuItem: import("react").ForwardRefExoticComponent>;
export interface MenuCheckboxItemProps extends Omit, 'onSelect'> {
/** Controlled checked state. */
checked?: boolean;
/** Fires when the checked state changes. */
onCheckedChange?: (checked: boolean) => void;
/** Disable selecting this item. */
disabled?: boolean;
/** Fires when the item is selected (click or Enter). */
onSelect?: (event: Event) => void;
/** Optional text used for typeahead matching. */
textValue?: string;
shortcut?: ReactNode;
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
}
export declare const MenuCheckboxItem: import("react").ForwardRefExoticComponent>;
export interface MenuRadioGroupProps extends Omit, 'onChange'> {
/** Controlled selected value. */
value?: string;
/** Fires when the selected value changes. */
onValueChange?: (value: string) => void;
}
export declare const MenuRadioGroup: FC;
export interface MenuRadioItemProps extends Omit, 'onSelect'> {
/** The value of this radio item within its group. */
value: string;
/** Disable selecting this item. */
disabled?: boolean;
/** Fires when the item is selected (click or Enter). */
onSelect?: (event: Event) => void;
/** Optional text used for typeahead matching. */
textValue?: string;
shortcut?: ReactNode;
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
}
export declare const MenuRadioItem: import("react").ForwardRefExoticComponent>;
export interface MenuLabelProps extends ComponentPropsWithoutRef<'div'> {
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
}
export declare const MenuLabel: import("react").ForwardRefExoticComponent>;
export interface MenuSeparatorProps extends HTMLAttributes {
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
}
export declare const MenuSeparator: import("react").ForwardRefExoticComponent>;
export interface MenuSubProps {
/** Controlled open state of the submenu. */
open?: boolean;
/** Uncontrolled initial open state. */
defaultOpen?: boolean;
/** Fires when the submenu opens or closes. */
onOpenChange?: (open: boolean) => void;
children?: ReactNode;
}
export declare const MenuSub: FC;
export interface MenuSubTriggerProps extends ComponentPropsWithoutRef<'div'> {
/** Disable opening this submenu. */
disabled?: boolean;
/** Optional text used for typeahead matching. */
textValue?: string;
icon?: ReactNode;
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
}
export declare const MenuSubTrigger: import("react").ForwardRefExoticComponent>;
export type MenuSubContentProps = Omit & {
/** Submenus open flush with the start or end of their trigger row; `center` is not supported. */
align?: 'start' | 'end';
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
};
export declare const MenuSubContent: import("react").ForwardRefExoticComponent & {
/** Submenus open flush with the start or end of their trigger row; `center` is not supported. */
align?: "start" | "end";
/** One-off CSS, same as `Box`'s `sx` (scalar or responsive `{ base, sm, md, lg, xl }` map). */
sx?: SxProp;
} & import("react").RefAttributes>;