import * as React from 'react'; import type { CSSMotionProps } from 'rc-motion'; import type { BuiltinPlacements, MenuClickEventHandler, MenuMode, RenderIconType, TriggerSubMenuAction } from '../interface'; export interface MenuContextProps { prefixCls: string; rootClassName?: string; openKeys: string[]; rtl?: boolean; mode: MenuMode; disabled?: boolean; overflowDisabled?: boolean; activeKey: string; onActive: (key: string) => void; onInactive: (key: string) => void; selectedKeys: string[]; inlineIndent: number; motion?: CSSMotionProps; defaultMotions?: Partial<{ [key in MenuMode | 'other']: CSSMotionProps; }>; subMenuOpenDelay: number; subMenuCloseDelay: number; forceSubMenuRender?: boolean; builtinPlacements?: BuiltinPlacements; triggerSubMenuAction?: TriggerSubMenuAction; itemIcon?: RenderIconType; expandIcon?: RenderIconType; onItemClick: MenuClickEventHandler; onOpenChange: (key: string, open: boolean) => void; getPopupContainer: (node: HTMLElement) => HTMLElement; } export declare const MenuContext: React.Context; export interface InheritableContextProps extends Partial { children?: React.ReactNode; locked?: boolean; } export default function InheritableContextProvider({ children, locked, ...restProps }: InheritableContextProps): React.JSX.Element;