import { Ref } from 'vue'; import { Direction } from '../shared/types'; export interface MenubarRootProps { /** The controlled value of the menu to open. Can be used as `v-model`. */ modelValue?: string; /** The value of the menu that should be open when initially rendered. Use when you do not need to control the value state. */ defaultValue?: string; /** * The reading direction of the combobox when applicable. * * If omitted, inherits globally from `ConfigProvider` or assumes LTR (left-to-right) reading mode. */ dir?: Direction; /** When `true`, keyboard navigation will loop from last item to first, and vice versa. */ loop?: boolean; } export type MenubarRootEmits = { /** Event handler called when the value changes. */ 'update:modelValue': [value: boolean]; }; export interface MenubarRootContext { modelValue: Ref; dir: Ref; loop: Ref; onMenuOpen: (value: string) => void; onMenuClose: () => void; onMenuToggle: (value: string) => void; } export declare const injectMenubarRootContext: (fallback?: T | undefined) => T extends null ? MenubarRootContext | null : MenubarRootContext, provideMenubarRootContext: (contextValue: MenubarRootContext) => MenubarRootContext; declare const _default: __VLS_WithTemplateSlots, { loop: boolean; }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { "update:modelValue": (value: boolean) => void; }, string, import('vue').PublicProps, Readonly, { loop: boolean; }>>> & { "onUpdate:modelValue"?: ((value: boolean) => any) | undefined; }, { loop: boolean; }, {}>, Readonly<{ default: (props: { /** Current input values */ modelValue: string; }) => any; }> & { default: (props: { /** Current input values */ modelValue: string; }) => any; }>; export default _default; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_PrettifyLocal : P[K]; }; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToOption = { [K in keyof T]-?: {} extends Pick ? { type: import('vue').PropType<__VLS_NonUndefinedable>; } : { type: import('vue').PropType; required: true; }; }; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; }; type __VLS_PrettifyLocal = { [K in keyof T]: T[K]; } & {};