import { VNode, Component } from 'preact'; export interface MenuItem { href?: string; title?: string; key: string; item: string | VNode; children?: MenuItem[]; } export interface MenuGroup { label?: string | VNode; href?: string; list?: MenuItem[]; } export interface MenuPropsType { onSelect?: { (key: string): void; }; className?: string; activeKey?: string; menus?: MenuGroup[]; } export interface MenuStateType { activeKey?: string; } export declare class Menu extends Component { props: MenuPropsType; state: MenuStateType; constructor(props: MenuPropsType); onClick: (key: string) => void; render(): JSX.Element; }