/**
 *
 * CarouselItem is a helper component for Carousel component.
 *
 * [Live Demo](https://www.primevue.dev/carousel/)
 *
 * @module carouselitem
 *
 */
import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core';
import type { ComponentHooks } from '@primevue/core/basecomponent';
import type { PassThroughOptions } from 'primevue/passthrough';
import type { Component, HTMLAttributes, VNode } from 'vue';

export declare type CarouselItemPassThroughOptionType = CarouselItemPassThroughAttributes | ((options: CarouselItemPassThroughMethodOptions) => CarouselItemPassThroughAttributes | string) | string | null | undefined;

/**
 * Custom passthrough(pt) option method.
 */
export interface CarouselItemPassThroughMethodOptions {
    /**
     * Defines instance.
     */
    instance: any;
    /**
     * Defines valid properties.
     */
    props: CarouselItemProps;
    /**
     * Defines valid attributes.
     */
    attrs: any;
    /**
     * Defines parent options.
     */
    parent: any;
    /**
     * Defines passthrough(pt) options in global config.
     */
    global: object | undefined;
}

/**
 * Custom passthrough(pt) options.
 * @see {@link CarouselItemProps.pt}
 */
export interface CarouselItemPassThroughOptions {
    /**
     * Used to pass attributes to the root's DOM element.
     */
    root?: CarouselItemPassThroughOptionType;
    /**
     * Used to manage all lifecycle hooks.
     * @see {@link BaseComponent.ComponentHooks}
     */
    hooks?: ComponentHooks;
}

/**
 * Custom passthrough attributes for each DOM elements
 */
export interface CarouselItemPassThroughAttributes {
    [key: string]: any;
}

/**
 * Defines valid properties in CarouselItem component.
 */
export interface CarouselItemProps {
    /**
     * Use to change the HTML tag of root element.
     * @defaultValue DIV
     */
    as?: string | Component | undefined;
    /**
     * When enabled, it changes the default rendered element for the one passed as a child element.
     * @defaultValue false
     */
    asChild?: boolean | undefined;
    /**
     * Unique identifier for the item, exposed as `data-value` on the root element.
     */
    value?: string | number | undefined;
    /**
     * It generates scoped CSS variables using design tokens for the component.
     */
    dt?: DesignToken<any>;
    /**
     * Used to pass attributes to DOM elements inside the component.
     * @type {CarouselItemPassThroughOptions}
     */
    pt?: PassThrough<CarouselItemPassThroughOptions>;
    /**
     * Used to configure passthrough(pt) options of the component.
     * @type {PassThroughOptions}
     */
    ptOptions?: PassThroughOptions;
    /**
     * When enabled, it removes component related styles in the core.
     * @defaultValue false
     */
    unstyled?: boolean;
}

/**
 * Root element attributes forwarded to the consumer when `asChild` is enabled.
 */
export interface CarouselItemA11yAttrs extends HTMLAttributes {
    /**
     * Default group role used for slide content.
     */
    role?: 'group';
    /**
     * Whether the item is currently hidden from assistive technologies.
     */
    'aria-hidden'?: 'true' | 'false';
    /**
     * PrimeVue component identifier.
     */
    'data-pc-name': 'carouselitem';
    /**
     * PrimeVue section identifier within the component.
     */
    'data-pc-section': 'root';
    /**
     * Identifier forwarded from the `value` prop.
     */
    'data-value'?: string | number;
    /**
     * Visibility marker toggled by the parent carousel's intersection observer.
     */
    'data-inview': 'false' | '';
    /**
     * Current orientation of the parent carousel.
     */
    'data-orientation'?: 'horizontal' | 'vertical';
    /**
     * Current alignment of the parent carousel.
     */
    'data-align'?: 'start' | 'center' | 'end';
    /**
     * Current page of the parent carousel.
     */
    'data-page'?: number;
    /**
     * Indicates whether a swipe gesture is in progress.
     */
    'data-swiping'?: '' | undefined;
    /**
     * Indicates whether `autoSize` is enabled on the parent carousel.
     */
    'data-autosize'?: '' | undefined;
}

/**
 * Defines valid slots in CarouselItem component.
 */
export interface CarouselItemSlots {
    /**
     * Custom content template. Receives scope props when `asChild` is enabled.
     * @param {Object} scope - default slot's params.
     */
    default(scope: {
        /**
         * Computed class name for the item root.
         */
        class: string | object | Array<string | object>;
        /**
         * Attributes to spread on the consumer's root element so the parent
         * carousel can detect and track this item.
         */
        a11yAttrs: CarouselItemA11yAttrs;
    }): VNode[];
}

/**
 * Defines valid emits in CarouselItem component.
 */
export interface CarouselItemEmitsOptions {}

export declare type CarouselItemEmits = EmitFn<CarouselItemEmitsOptions>;

/**
 * **PrimeVue - CarouselItem**
 *
 * _CarouselItem is a helper component for Carousel component._
 *
 * [Live Demo](https://www.primevue.dev/carousel/)
 * --- ---
 * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
 *
 * @group Component
 *
 */
declare const CarouselItem: DefineComponent<CarouselItemProps, CarouselItemSlots, CarouselItemEmits>;

declare module 'vue' {
    export interface GlobalComponents {
        CarouselItem: DefineComponent<CarouselItemProps, CarouselItemSlots, CarouselItemEmits>;
    }
}

export default CarouselItem;
