/**
 *
 * Visual gradient layer rendered inside `InputColorArea`. Pure decoration; not interactive.
 *
 * @module inputcolorareabackground
 *
 */
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, VNode } from 'vue';

/**
 * Custom passthrough(pt) option type, used to forward attributes via {@link InputColorAreaBackgroundPassThroughOptions}.
 */
export declare type InputColorAreaBackgroundPassThroughOptionType =
    InputColorAreaBackgroundPassThroughAttributes | ((options: InputColorAreaBackgroundPassThroughMethodOptions) => InputColorAreaBackgroundPassThroughAttributes | string) | string | null | undefined;

/**
 * Custom passthrough(pt) option method.
 */
export interface InputColorAreaBackgroundPassThroughMethodOptions {
    /**
     * Defines instance.
     */
    instance: any;
    /**
     * Defines valid properties.
     */
    props: InputColorAreaBackgroundProps;
    /**
     * 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 InputColorAreaBackgroundProps.pt}
 */
export interface InputColorAreaBackgroundPassThroughOptions {
    /**
     * Used to pass attributes to the root's DOM element.
     */
    root?: InputColorAreaBackgroundPassThroughOptionType;
    /**
     * Used to manage all lifecycle hooks.
     * @see {@link BaseComponent.ComponentHooks}
     */
    hooks?: ComponentHooks;
}

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

/**
 * Defines valid properties in InputColorAreaBackground component.
 */
export interface InputColorAreaBackgroundProps {
    /**
     * 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;
    /**
     * 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 {InputColorAreaBackgroundPassThroughOptions}
     */
    pt?: PassThrough<InputColorAreaBackgroundPassThroughOptions>;
    /**
     * 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;
}

/**
 * Defines valid slots in InputColorAreaBackground component.
 */
export interface InputColorAreaBackgroundSlots {
    /**
     * Custom root element template. Receives scope props when `asChild` is enabled.
     * @param {Object} scope - default slot's params.
     */
    default(scope: {
        /**
         * Style class of the area background root.
         */
        class: string;
        /**
         * Attributes to spread on the consumer's root element.
         */
        a11yAttrs: Record<string, unknown>;
    }): VNode[];
}

/**
 * Defines valid emits in InputColorAreaBackground component.
 */
export interface InputColorAreaBackgroundEmitsOptions {}

/**
 * Type alias for emits resolved from {@link InputColorAreaBackgroundEmitsOptions}.
 */
export declare type InputColorAreaBackgroundEmits = EmitFn<InputColorAreaBackgroundEmitsOptions>;

/**
 * **PrimeVue - InputColorAreaBackground**
 *
 * _Visual gradient layer rendered inside `InputColorArea`._
 *
 * [Live Demo](https://www.primevue.dev/inputcolor/)
 * --- ---
 * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png)
 *
 * @group Component
 *
 */
declare const InputColorAreaBackground: DefineComponent<InputColorAreaBackgroundProps, InputColorAreaBackgroundSlots, InputColorAreaBackgroundEmits>;

declare module 'vue' {
    export interface GlobalComponents {
        InputColorAreaBackground: DefineComponent<InputColorAreaBackgroundProps, InputColorAreaBackgroundSlots, InputColorAreaBackgroundEmits>;
    }
}

export default InputColorAreaBackground;
