/**
 *
 * ScrollAreaCorner fills the corner where the vertical and horizontal scrollbars meet.
 *
 * @module scrollareacorner
 *
 */
import type { DefineComponent, DesignToken, EmitFn, PassThrough } from '@primevue/core';
import type { ComponentHooks } from '@primevue/core/basecomponent';
import type { PassThroughOptions } from 'primevue/passthrough';
import { Component, VNode } from 'vue';

/**
 * Custom passthrough(pt) option value type used across ScrollAreaCorner passthrough slots.
 */
export declare type ScrollAreaCornerPassThroughOptionType = ScrollAreaCornerPassThroughAttributes | ((options: ScrollAreaCornerPassThroughMethodOptions) => ScrollAreaCornerPassThroughAttributes | string) | string | null | undefined;

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

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

/**
 * Defines valid properties in ScrollAreaCorner component.
 */
export interface ScrollAreaCornerProps {
    /**
     * The element or component used to render the root.
     * @defaultValue 'DIV'
     */
    as?: string | Component | undefined;
    /**
     * When enabled, root element renders without its own DOM; consumer renders via slot using `a11yAttrs`.
     * @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 {ScrollAreaCornerPassThroughOptions}
     */
    pt?: PassThrough<ScrollAreaCornerPassThroughOptions>;
    /**
     * 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 ScrollAreaCorner component.
 */
export interface ScrollAreaCornerSlots {
    /**
     * Custom content slot.
     * @param {Object} scope - default slot props.
     */
    default: (scope: {
        /**
         * Accessibility attributes that should be spread onto the consumer-rendered root when `asChild` is enabled.
         */
        a11yAttrs: Record<string, unknown>;
        /**
         * Root element class produced by the component's `cx('root')` helper.
         */
        class: any;
    }) => VNode[];
}

/**
 * Defines valid emits in ScrollAreaCorner component.
 */
export interface ScrollAreaCornerEmitsOptions {}

/**
 * Defines the emit function type for ScrollAreaCorner.
 */
export declare type ScrollAreaCornerEmits = EmitFn<ScrollAreaCornerEmitsOptions>;

declare const ScrollAreaCorner: DefineComponent<ScrollAreaCornerProps, ScrollAreaCornerSlots, ScrollAreaCornerEmits>;

declare module 'vue' {
    export interface GlobalComponents {
        ScrollAreaCorner: DefineComponent<ScrollAreaCornerProps, ScrollAreaCornerSlots, ScrollAreaCornerEmits>;
    }
}

export default ScrollAreaCorner;
