import type { NavigationMenuRootProps, NavigationMenuContentProps, NavigationMenuContentEmits, AccordionRootProps } from 'reka-ui';
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/b24ui/navigation-menu';
import type { AvatarProps, BadgeProps, IconComponent, LinkProps, PopoverProps, TooltipProps } from '../types';
import type { ArrayOrNested, DynamicSlots, GetItemKeys, MergeTypes, NestedItem, EmitsToProps } from '../types/utils';
import type { ComponentConfig } from '../types/tv';
type NavigationMenu = ComponentConfig<typeof theme, AppConfig, 'navigationMenu'>;
/**
 * @memo not use in NavigationMenuChildItem
 * - description
 * - avatar
 * - b24ui
 * - children - only 1 level
 */
export interface NavigationMenuChildItem extends Omit<NavigationMenuItem, 'type' | 'b24ui' | 'avatar' | 'children'> {
    [key: string]: any;
}
export interface NavigationMenuItem extends Omit<LinkProps, 'type' | 'raw' | 'custom'> {
    label?: string;
    /**
     * Icon is only used when `orientation` is `vertical`
     * @IconComponent
     */
    icon?: IconComponent;
    /**
     * Avatar is only used when `orientation` is `vertical`
     * @AvatarProps
     */
    avatar?: AvatarProps;
    /**
     * Display a badge on the item.
     * `{ size: 'xs', color: 'air-primary-alert' }`{lang="ts"}
     */
    badge?: string | number | BadgeProps;
    /**
     * Display a hint on the item in `horizontal` orientation.
     */
    hint?: string;
    /**
     * Display a tooltip on the item when the menu is collapsed with the label of the item.
     * This has priority over the global `tooltip` prop.
     */
    tooltip?: boolean | TooltipProps;
    /**
     * Display a popover on the item when the menu is collapsed with the children list.
     * This has priority over the global `popover` prop.
     */
    popover?: boolean | PopoverProps;
    /**
     * @IconComponent
     */
    trailingIcon?: IconComponent;
    /**
     * The type of the item.
     * The `label` type is only displayed in `vertical` orientation.
     * The `trigger` type is used to force the item to be collapsible when its a link in `vertical` orientation.
     * @defaultValue 'link'
     */
    type?: 'label' | 'trigger' | 'link';
    slot?: string;
    /**
     * The value of the item. Avoid using `index` as the value to prevent conflicts in horizontal orientation with Reka UI.
     * @defaultValue `item-${index}`
     */
    value?: string;
    children?: NavigationMenuChildItem[];
    /**
     * With orientation=`horizontal` if `true` it will position the dropdown menu correctly
     */
    viewportRtl?: boolean;
    defaultOpen?: boolean;
    open?: boolean;
    onSelect?: (e: Event) => void;
    class?: any;
    b24ui?: Pick<NavigationMenu['slots'], 'item' | 'linkLeadingAvatarSize' | 'linkLeadingAvatar' | 'linkLeadingIcon' | 'linkLabel' | 'linkLabelExternalIcon' | 'linkTrailing' | 'linkLeadingHint' | 'linkLeadingBadgeSize' | 'linkLeadingBadge' | 'linkTrailingIcon' | 'label' | 'link' | 'content' | 'childList' | 'childLabel' | 'childItem' | 'childLink' | 'childLinkIcon' | 'childLinkHint' | 'childLinkBadgeSize' | 'childLinkBadge' | 'childLinkWrapper' | 'childLinkLabel' | 'childLinkLabelExternalIcon' | 'popoverWrapper'>;
    [key: string]: any;
}
type SingleOrMultipleType = 'single' | 'multiple';
type Orientation = NavigationMenuRootProps['orientation'];
type NavigationMenuModelValue<K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> = O extends 'horizontal' ? string : K extends 'single' ? string : K extends 'multiple' ? string[] : string | string[];
/**
 * @memo remove contentOrientation
 * @memo remove highlight
 * @memo remove highlightColor
 * @memo remove arrow
 * @memo remove color
 * @memo remove variant (link) -> use variant.pill
 */
export interface NavigationMenuProps<T extends ArrayOrNested<NavigationMenuItem> = ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> extends Pick<NavigationMenuRootProps, 'delayDuration' | 'disableClickTrigger' | 'disableHoverTrigger' | 'skipDelayDuration' | 'disablePointerLeaveClose' | 'unmountOnHide'>, Pick<AccordionRootProps, 'disabled' | 'collapsible'> {
    /**
     * The element or component this component should render as.
     * @defaultValue 'div'
     */
    as?: any;
    /**
     * Determines whether a "single" or "multiple" items can be selected at a time.
     *
     * Only works when `orientation` is `vertical`.
     * @defaultValue 'multiple'
     */
    type?: K;
    /**
     * The controlled value of the active item(s).
     * - In horizontal orientation: always `string`
     * - In vertical orientation with `type="single"`: `string`
     * - In vertical orientation with `type="multiple"`: `string[]`
     *
     * Use this when you need to control the state of the items. Can be binded with `v-model`
     */
    modelValue?: NavigationMenuModelValue<K, O>;
    /**
     * The default active value of the item(s).
     * - In horizontal orientation: always `string`
     * - In vertical orientation with `type="single"`: `string`
     * - In vertical orientation with `type="multiple"`: `string[]`
     *
     * Use when you do not need to control the state of the item(s).
     */
    defaultValue?: NavigationMenuModelValue<K, O>;
    /**
     * The icon displayed to open the menu.
     * @defaultValue icons.chevronDown
     * @IconComponent
     */
    trailingIcon?: IconComponent;
    /**
     * The icon displayed when the item is an external link.
     * Set to `false` to hide the external icon.
     * @defaultValue icons.external
     * @IconComponent
     */
    externalIcon?: boolean | IconComponent;
    items?: T;
    /**
     * The orientation of the menu.
     * @defaultValue 'horizontal'
     */
    orientation?: O;
    /**
     * Collapse the navigation menu to only show icons.
     * Only works when `orientation` is `vertical`.
     * @defaultValue false
     */
    collapsed?: boolean;
    /**
     * Display a tooltip on the items when the menu is collapsed with the label of the item.
     * `{ delayDuration: 0, content: { side: 'right' } }`{lang="ts-type"}
     * @defaultValue false
     */
    tooltip?: boolean | TooltipProps;
    /**
     * Display a popover on the items when the menu is collapsed with the children list.
     * `{ mode: 'hover', content: { side: 'right', align: 'center', alignOffset: 2 } }`{lang="ts-type"}
     * @defaultValue false
     */
    popover?: boolean | PopoverProps;
    /**
     * The content of the menu.
     */
    content?: Omit<NavigationMenuContentProps, 'as' | 'asChild' | 'forceMount'> & Partial<EmitsToProps<NavigationMenuContentEmits>>;
    /**
     * The key used to get the label from the item.
     * @defaultValue 'label'
     */
    labelKey?: GetItemKeys<T>;
    class?: any;
    b24ui?: NavigationMenu['slots'];
}
export type NavigationMenuEmits<K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation> = {
    /**
     * Event handler called when the value changes.
     * - In horizontal orientation: emits `string`
     * - In vertical orientation with `type="single"`: emits `string | undefined`
     * - In vertical orientation with `type="multiple"`: emits `string[] | undefined`
     */
    'update:modelValue': [value: NavigationMenuModelValue<K, O> | undefined];
};
type SlotProps<T extends NavigationMenuItem> = (props: {
    item: T;
    index: number;
    active?: boolean;
    b24ui: NavigationMenu['b24ui'];
}) => any;
export type NavigationMenuSlots<A extends ArrayOrNested<NavigationMenuItem> = ArrayOrNested<NavigationMenuItem>, T extends NestedItem<A> = NestedItem<A>> = {
    'item': SlotProps<T>;
    'item-leading': SlotProps<T>;
    'item-label': (props: {
        item: T;
        index: number;
        active?: boolean;
    }) => any;
    'item-trailing': SlotProps<T>;
    'item-content': SlotProps<T> & {
        close?: () => void;
    };
    'list-leading': (props?: {}) => any;
    'list-trailing': (props?: {}) => any;
} & DynamicSlots<MergeTypes<T>, 'label', {
    index: number;
    active?: boolean;
    b24ui: NavigationMenu['b24ui'];
}> & DynamicSlots<MergeTypes<T>, 'leading' | 'trailing' | 'content', {
    index: number;
    active?: boolean;
    b24ui: NavigationMenu['b24ui'];
}>;
declare const __VLS_export: <T extends ArrayOrNested<NavigationMenuItem>, K extends SingleOrMultipleType = SingleOrMultipleType, O extends Orientation = Orientation>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
    props: __VLS_PrettifyLocal<NavigationMenuProps<T, K, O> & {
        "onUpdate:modelValue"?: ((value: NavigationMenuModelValue<K, O> | undefined) => any) | undefined;
    }> & import("vue").PublicProps;
    expose: (exposed: {}) => void;
    attrs: any;
    slots: NavigationMenuSlots<T, NestedItem<T>>;
    emit: (evt: "update:modelValue", value: NavigationMenuModelValue<K, O> | undefined) => void;
}>) => import("vue").VNode & {
    __ctx?: Awaited<typeof __VLS_setup>;
};
declare const _default: typeof __VLS_export;
export default _default;
type __VLS_PrettifyLocal<T> = {
    [K in keyof T as K]: T[K];
} & {};
