import { ComparePassThrough, CompareValueChangeEvent } from "primeng/types/compare"; import { BaseComponent } from "primeng/basecomponent"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { BaseStyle } from "primeng/base"; import * as i0 from "@angular/core"; import { InjectionToken } from "@angular/core"; import * as i5 from "primeng/api"; export * from "primeng/types/compare"; export declare class CompareStyle extends BaseStyle { name: string; style: string; classes: { root: string; item: string; handle: ({ instance }: any) => (string | { 'p-disabled': any; })[]; indicator: ({ instance }: any) => (string | { 'p-disabled': any; })[]; input: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * Compare allows comparing two items side by side with a slider. * * [Live Demo](https://www.primeng.org/compare) * * @module comparestyle * */ export declare enum CompareClasses { /** * Class name of the root element */ root = "p-compare", /** * Class name of the item element */ item = "p-compare-item", /** * Class name of the handle element */ handle = "p-compare-handle", /** * Class name of the indicator element */ indicator = "p-compare-indicator", /** * Class name of the input element */ input = "p-compare-input" } /** * CompareItem is a helper component for Compare component. * @group Components */ export declare class CompareItem extends BaseComponent { componentName: string; bindDirectiveInstance: Bind; pcCompare: Compare; _componentStyle: CompareStyle; /** * Position of the item. * @group Props */ position: import("@angular/core").InputSignal<"before" | "after">; clipPath: import("@angular/core").Signal; onAfterViewChecked(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * CompareHandle is a helper component for Compare component. * @group Components */ export declare class CompareHandle extends BaseComponent { componentName: string; bindDirectiveInstance: Bind; pcCompare: Compare; _componentStyle: CompareStyle; private hostEl; handleStyle: import("@angular/core").Signal>; onAfterViewChecked(): void; onAfterViewInit(): void; onPointerDown(event: PointerEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * CompareIndicator is a helper component for Compare component. * @group Components */ export declare class CompareIndicator extends BaseComponent { componentName: string; bindDirectiveInstance: Bind; pcCompare: Compare; _componentStyle: CompareStyle; /** * Used to define a string that labels the input element. * @group Props */ ariaLabel: import("@angular/core").InputSignal; /** * Establishes relationships between the component and label(s) where its value should be one or more element IDs. * @group Props */ ariaLabelledby: import("@angular/core").InputSignal; onAfterViewChecked(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Compare allows comparing two items side by side with a slider. * @group Components */ export declare class Compare extends BaseComponent { componentName: string; bindDirectiveInstance: Bind; _componentStyle: CompareStyle; private hostEl; /** * Current value of the slider position (0-100). * @group Props */ value: import("@angular/core").InputSignal; /** * Default value when uncontrolled. * @group Props */ defaultValue: import("@angular/core").InputSignalWithTransform; /** * Orientation of the comparison slider. * @group Props */ orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">; /** * Minimum value. * @group Props */ min: import("@angular/core").InputSignalWithTransform; /** * Maximum value. * @group Props */ max: import("@angular/core").InputSignalWithTransform; /** * Step increment. * @group Props */ step: import("@angular/core").InputSignalWithTransform; /** * Whether the slider updates on hover. * @group Props */ slideOnHover: import("@angular/core").InputSignalWithTransform; /** * Whether the component is disabled. * @group Props */ disabled: import("@angular/core").InputSignalWithTransform; /** * Callback to invoke when value changes. * @param {CompareValueChangeEvent} event - Custom value change event. * @group Emits */ onValueChange: import("@angular/core").OutputEmitterRef; /** * Callback to invoke when dragging ends. * @param {CompareValueChangeEvent} event - Custom value change event. * @group Emits */ onValueChangeEnd: import("@angular/core").OutputEmitterRef; isDragging: import("@angular/core").WritableSignal; dataDisabled: import("@angular/core").Signal<"" | null>; dataDragging: import("@angular/core").Signal<"" | null>; isThumbPointerDown: boolean; private internalValue; currentValue: import("@angular/core").Signal; private isHorizontal; private dragOffsetPx; handleEl: HTMLElement | null; onAfterViewChecked(): void; onAfterViewInit(): void; private getRootRect; private clamp; private roundToStep; private normalizeValue; private getValueFromPointer; private getValuePercent; private updateValue; private updateValueFromPointer; getItemStyle(position: 'before' | 'after'): { clipPath: string; }; getHandleStyle(): Record; onRootPointerDown(event: PointerEvent): void; onRootPointerMove(event: PointerEvent): void; onRootPointerUp(event: PointerEvent): void; onThumbPointerDown(event: PointerEvent): void; onInputChange(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class CompareModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export declare const COMPARE_INSTANCE: InjectionToken;