import { AtomProps } from "../Atom/Atom.vue.mjs"; import "../Atom/index.mjs"; import { RegistryContext, RegistryTicket, RegistryTicketInput } from "../../composables/createRegistry/index.mjs"; import { OverflowContext } from "../../composables/createOverflow/index.mjs"; import { MaybeRefOrGetter, Ref, ShallowRef } from "vue"; //#region src/components/Avatar/AvatarGroup.vue.d.ts type AvatarGroupPriority = 'start' | 'end'; interface AvatarGroupTicketInput extends RegistryTicketInput { value?: V; disabled?: MaybeRefOrGetter; el?: MaybeRefOrGetter; } interface AvatarGroupTicket extends RegistryTicket { value: V | undefined; disabled: Readonly>; el: Readonly>; } interface AvatarGroupContext { registry: RegistryContext; max: Readonly>; responsive: Readonly>; priority: Readonly>; indicatorWidth: ShallowRef; itemWidth: ShallowRef; overflow: Readonly>; isOverflowing: Readonly>; isVisible: (index: number) => boolean; } interface AvatarGroupProps extends AtomProps { /** Namespace for dependency injection (must match Avatar.Root groupNamespace) */ namespace?: string; /** Upper bound on visible count; default Infinity */ max?: number; /** Opt-in width-responsive truncation via createOverflow */ responsive?: boolean; /** Which side keeps items when truncated */ priority?: AvatarGroupPriority; /** Pixel gap between items; only meaningful when responsive */ gap?: number; /** Accessible name for the group */ label?: string; /** ID of element that labels this group */ ariaLabelledby?: string; /** ID of element that describes this group */ ariaDescribedby?: string; } interface AvatarGroupSlotProps { /** Total number of registered, non-disabled avatars in the group */ total: number; visible: number; hidden: AvatarGroupTicket[]; isOverflowing: boolean; attrs: { 'role': 'group'; 'aria-label': string | undefined; 'aria-labelledby': string | undefined; 'aria-describedby': string | undefined; 'data-overflow': true | undefined; 'data-priority': AvatarGroupPriority; }; } declare const useAvatarGroup: (key: string, defaultValue?: AvatarGroupContext | null | undefined) => AvatarGroupContext | null, provideAvatarGroup: (key: string, context: AvatarGroupContext | null, app?: import("vue").App) => AvatarGroupContext | null; declare const _default: typeof __VLS_export; declare const __VLS_export: __VLS_WithSlots & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, { default: (props: AvatarGroupSlotProps) => unknown; }>; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; //#endregion export { AvatarGroupContext, AvatarGroupPriority, AvatarGroupProps, AvatarGroupSlotProps, AvatarGroupTicket, AvatarGroupTicketInput, _default as default, provideAvatarGroup, useAvatarGroup };