import { Body } from './body'; import { ButtonAction } from './action-hive'; import { ContextPathFunc, RegExpLike } from './generic-types'; import { InlineKeyboard } from './keyboard'; export interface MenuLike { readonly renderBody: ContextPathFunc; readonly renderKeyboard: ContextPathFunc; readonly renderActionHandlers: (path: RegExpLike) => ReadonlySet>; readonly listSubmenus: () => ReadonlySet>; } export interface Submenu { readonly action: RegExpLike; readonly hide: undefined | ContextPathFunc; readonly menu: MenuLike; }