import type { ComponentSpec, DeclarationSpec, DefaultProps, FormProps, ModelOf, RetiredEvents } from "../elements/adapter.js"; import type { IconButtonElement, IconButtonSpec } from "../elements/icon-button.js"; import type { AppBarElement, AppBarSpec, BadgeElement, BadgeSpec, BottomAppBarElement, BottomAppBarSpec, BottomSheetElement, BottomSheetSpec, ButtonElement, ButtonGroupElement, ButtonGroupItemAttributes, ButtonGroupSpec, ButtonSpec, CardElement, CardSpec, CarouselElement, CarouselItemAttributes, CarouselSpec, CheckboxElement, CheckboxSpec, ChipAttributes, ChipsElement, ChipsSpec, DatepickerElement, DatepickerSpec, DefineOptions, DialogElement, DialogSpec, DividerElement, DividerSpec, DrawerElement, DrawerItemAttributes, DrawerSpec, ElementEvents, ElementProperties, ElementProps, ElementSlots, ExtendedFabElement, ExtendedFabSpec, FabElement, FabMenuElement, FabMenuItemAttributes, FabMenuSpec, FabSpec, ListElement, ListItemAttributes, ListSpec, LoadingIndicatorElement, LoadingIndicatorSpec, MenuElement, MenuItemAttributes, MenuSpec, NavigationBarElement, NavigationBarItemAttributes, NavigationBarSpec, NavigationDrawerElement, NavigationDrawerItemAttributes, NavigationDrawerSpec, NavigationRailElement, NavigationRailItemAttributes, NavigationRailSpec, ProgressElement, ProgressSpec, RadioAttributes, RadiosElement, RadiosSpec, SearchElement, SearchSpec, SearchSuggestionAttributes, SelectElement, SelectOptionAttributes, SelectSpec, SideSheetElement, SideSheetSpec, SliderElement, SliderSpec, SnackbarElement, SnackbarSpec, SplitButtonElement, SplitButtonSpec, SwitchElement, SwitchSpec, TabAttributes, TabsElement, TabsSpec, TextFieldElement, TextFieldSpec, TimepickerElement, TimepickerSpec, ToolbarElement, ToolbarSpec, TooltipElement, TooltipSpec, TopAppBarElement, TopAppBarSpec } from "../elements/index.js"; import type { DefineSetupFnComponent, FunctionalComponent, HTMLAttributes, SlotsType, VNodeChild } from "vue"; declare const MAppBar: MComponent; declare const MBadge: MComponent; /** @deprecated Material Design 3 Expressive replaces the bottom app bar with the docked toolbar. Use MToolbar with variant="docked" placement="bottom" instead. A centred FAB, adding a FAB after creation, a custom transition duration and a custom tag are not yet available on the docked toolbar. */ declare const MBottomAppBar: MComponent; declare const MBottomSheet: MComponent; declare const MButtonGroupItem: MDeclaration; declare const MButtonGroup: MComponent; declare const MButton: MComponent; declare const MCard: MComponent; declare const MCarouselItem: MDeclaration; declare const MCarousel: MComponent; declare const MCheckbox: MComponent; declare const MChip: MDeclaration; declare const MChips: MComponent; /** `modelValue` for the spec's model property, so plain `v-model` binds it. */ type ModelProps = [ ModelOf ] extends [ never ] ? Record : { modelValue?: ElementProperties[ModelOf]; }; type OwnProps = ElementProps & DefaultProps & FormProps & ModelProps; type EnterKeyHint = "enter" | "done" | "go" | "next" | "previous" | "search" | "send"; /** Globals Vue's `HTMLAttributes` omits. */ type VueHostGaps = { popover?: "" | "auto" | "manual" | "hint"; enterkeyhint?: EnterKeyHint; enterKeyHint?: EnterKeyHint; nonce?: string; }; type Missing = { [K in Exclude]?: K extends keyof Extra ? Extra[K] : never; }; /** `HTMLAttributes` for the host, plus globals a supported Vue release omits. */ type VueHostAttributes = HTMLAttributes & Missing; /** `on…` names Vue builds from this component's emits (`change` → `onChange`). */ type EventKeys = `on${Capitalize & string>}` | `onUpdate:${keyof ElementProperties & string}` | ([ ModelOf ] extends [ never ] ? never : "onUpdate:modelValue"); /** Props of a generated component: the element's own, plus any HTML attribute for the host. */ type VueProps = OwnProps & Omit | EventKeys | RetiredProps> & { [K in RetiredProps]?: `${K} was removed in material 3.0.0: use onChange`; }; /** The handler props of events material 3.0.0 removed (`onToggle` on the icon button): refused, see `RetiredEvents`. */ type RetiredProps = `on${Capitalize>}`; /** Its events: the element's, and `update:*` for two-way binding. */ type VueEmits = { [K in keyof ElementEvents & string]: (event: ElementEvents[K]) => true; } & { [K in keyof ElementProperties & string as `update:${K}`]: (value: NonNullable[K]>) => true; } & ([ ModelOf ] extends [ never ] ? Record : { "update:modelValue": (value: NonNullable[ModelOf]>) => true; }); /** What a generated component's template ref exposes besides Vue's instance: `ref & Exposed>()`. */ interface Exposed { readonly element: E | null; } /** A generated component; named so declarations stay short. */ type MComponent = DefineSetupFnComponent, VueEmits, VueSlots>; /** Its slots: the default one, and each named slot the element reads (`