import type { VNode } from 'vue';
import type { AppConfig } from '@nuxt/schema';
import theme from '#build/b24ui/description-list';
import type { AvatarProps, ButtonProps, IconComponent } from '../types';
import type { DynamicSlots } from '../types/utils';
import type { ComponentConfig } from '../types/tv';
type DescriptionList = ComponentConfig<typeof theme, AppConfig, 'descriptionList'>;
export interface DescriptionListItem {
    label?: string;
    /**
     * Display an icon on the left side.
     * @IconComponent
     */
    icon?: IconComponent;
    avatar?: AvatarProps;
    slot?: string;
    description?: string;
    /**
     * The orientation between the content and the actions.
     * @defaultValue 'vertical'
     */
    orientation?: DescriptionList['variants']['orientation'];
    /**
     * Display a list of actions:
     * - under the description when orientation is `vertical`
     * - next to the description when orientation is `horizontal`
     * `{ size: 'xs' }`{lang="ts"}
     */
    actions?: ButtonProps[];
    class?: any;
    b24ui?: Pick<DescriptionList['slots'], 'labelWrapper' | 'icon' | 'avatar' | 'label' | 'descriptionWrapper' | 'description' | 'actions'>;
    [key: string]: any;
}
export interface DescriptionListProps<T extends DescriptionListItem = DescriptionListItem> {
    legend?: string;
    text?: string;
    /**
     * The key used to get the label from the item.
     * @defaultValue 'label'
     */
    labelKey?: string;
    /**
     * The key used to get the description from the item.
     * @defaultValue 'description'
     */
    descriptionKey?: string;
    items?: T[];
    /**
     * @defaultValue 'md'
     */
    size?: DescriptionList['variants']['size'];
    class?: any;
    b24ui?: DescriptionList['slots'];
}
type SlotProps<T extends DescriptionListItem> = (props: {
    item: T;
    index: number;
    b24ui: DescriptionList['b24ui'];
}) => VNode[];
export type DescriptionListSlots<T extends DescriptionListItem = DescriptionListItem> = {
    'legend'?(props?: {
        b24ui: DescriptionList['b24ui'];
    }): VNode[];
    'text'?(props?: {
        b24ui: DescriptionList['b24ui'];
    }): VNode[];
    'leading'?: SlotProps<T>;
    'label'?: SlotProps<T>;
    'description'?: SlotProps<T>;
    'actions'?: SlotProps<T>;
    'content-top'?: SlotProps<T>;
    'content'?: SlotProps<T>;
    'content-bottom'?: SlotProps<T>;
    'footer'?(props?: {
        b24ui: DescriptionList['b24ui'];
    }): VNode[];
} & DynamicSlots<T, undefined, {
    index: number;
    b24ui: DescriptionList['b24ui'];
}>;
declare const _default: typeof __VLS_export;
export default _default;
declare const __VLS_export: <T extends DescriptionListItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
    props: import("vue").PublicProps & __VLS_PrettifyLocal<DescriptionListProps<T>> & (typeof globalThis extends {
        __VLS_PROPS_FALLBACK: infer P;
    } ? P : {});
    expose: (exposed: {}) => void;
    attrs: any;
    slots: DescriptionListSlots<T>;
    emit: {};
}>) => import("vue").VNode & {
    __ctx?: Awaited<typeof __VLS_setup>;
};
type __VLS_PrettifyLocal<T> = (T extends any ? {
    [K in keyof T]: T[K];
} : {
    [K in keyof T as K]: T[K];
}) & {};
