import { PassThrough, PassThroughOption } from 'primeng/api';

/**
 * Defines valid pass-through(pt) options.
 * @template I Type of instance.
 *
 * @see {@link Compare.pt}
 * @group Interface
 */
interface ComparePassThroughOptions<I = unknown> {
    /**
     * Used to pass attributes to the root's DOM element.
     */
    root?: PassThroughOption<HTMLDivElement, I>;
    /**
     * Used to pass attributes to the item's DOM element.
     */
    item?: PassThroughOption<HTMLDivElement, I>;
    /**
     * Used to pass attributes to the handle's DOM element.
     */
    handle?: PassThroughOption<HTMLDivElement, I>;
    /**
     * Used to pass attributes to the indicator's DOM element.
     */
    indicator?: PassThroughOption<HTMLDivElement, I>;
    /**
     * Used to pass attributes to the input's DOM element.
     */
    input?: PassThroughOption<HTMLInputElement, I>;
}
/**
 * Defines valid pass-through options in Compare component.
 * @see {@link ComparePassThroughOptions}
 *
 * @template I Type of instance.
 */
type ComparePassThrough<I = unknown> = PassThrough<I, ComparePassThroughOptions<I>>;
/**
 * Custom value change event.
 * @see {@link Compare.onValueChange}
 * @group Events
 */
interface CompareValueChangeEvent {
    /**
     * Browser event.
     */
    originalEvent: Event;
    /**
     * New value.
     */
    value: number;
}

export type { ComparePassThrough, ComparePassThroughOptions, CompareValueChangeEvent };
