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 { /** * Used to pass attributes to the root's DOM element. */ root?: PassThroughOption; /** * Used to pass attributes to the item's DOM element. */ item?: PassThroughOption; /** * Used to pass attributes to the handle's DOM element. */ handle?: PassThroughOption; /** * Used to pass attributes to the indicator's DOM element. */ indicator?: PassThroughOption; /** * Used to pass attributes to the input's DOM element. */ input?: PassThroughOption; } /** * Defines valid pass-through options in Compare component. * @see {@link ComparePassThroughOptions} * * @template I Type of instance. */ type ComparePassThrough = PassThrough>; /** * 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 };