import { ToggleSwitchChangeEvent, ToggleSwitchHandleTemplateContext, ToggleSwitchPassThrough } from "primeng/types/toggleswitch"; import * as i0 from "@angular/core"; import { ElementRef, Provider, TemplateRef } from "@angular/core"; import { BaseEditableHolder } from "primeng/baseeditableholder"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { InputSize } from "primeng/types/shared"; import { BaseStyle } from "primeng/base"; import * as i2 from "primeng/api"; export * from "primeng/types/toggleswitch"; export declare class ToggleSwitchStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-toggleswitch-checked': any; 'p-disabled': any; 'p-invalid': any; })[]; input: string; slider: string; handle: string; }; inlineStyles: { root: { position: string; }; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * ToggleSwitch is used to select a boolean value. * * [Live Demo](https://www.primeng.org/toggleswitch/) * * @module toggleswitchstyle * */ export declare enum ToggleSwitchClasses { /** * Class name of the root element */ root = "p-toggleswitch", /** * Class name of the input element */ input = "p-toggleswitch-input", /** * Class name of the slider element */ slider = "p-toggleswitch-slider" } export declare const TOGGLESWITCH_VALUE_ACCESSOR: Provider; /** * ToggleSwitch is used to select a boolean value. * @group Components */ export declare class ToggleSwitch extends BaseEditableHolder { componentName: string; $pcToggleSwitch: ToggleSwitch | undefined; bindDirectiveInstance: Bind; _componentStyle: ToggleSwitchStyle; /** * Index of the element in tabbing order. * @group Props */ tabindex: import("@angular/core").InputSignalWithTransform; /** * Identifier of the input element. * @group Props */ inputId: import("@angular/core").InputSignal; /** * When present, it specifies that the component cannot be edited. * @group Props */ readonly: import("@angular/core").InputSignalWithTransform; /** * Value in checked state. * @group Props */ trueValue: import("@angular/core").InputSignal; /** * Value in unchecked state. * @group Props */ falseValue: import("@angular/core").InputSignal; /** * Used to define a string that autocomplete attribute the current element. * @group Props */ ariaLabel: import("@angular/core").InputSignal; /** * Specifies the size of the component. * @defaultValue undefined * @group Props */ size: 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; /** * When present, it specifies that the component should automatically get focus on load. * @group Props */ autofocus: import("@angular/core").InputSignalWithTransform; /** * Callback to invoke when the on value change. * @param {ToggleSwitchChangeEvent} event - Custom change event. * @group Emits */ onChange: import("@angular/core").OutputEmitterRef; /** * Custom handle template. * @param {ToggleSwitchHandleTemplateContext} context - handle context. * @see {@link ToggleSwitchHandleTemplateContext} * @group Templates */ handleTemplate: import("@angular/core").Signal | undefined>; inputEl: import("@angular/core").Signal>; focused: import("@angular/core").WritableSignal; $checked: import("@angular/core").Signal; attrRequired: import("@angular/core").Signal<"" | undefined>; attrDisabled: import("@angular/core").Signal<"" | undefined>; dataP: import("@angular/core").Signal; onAfterViewChecked(): void; onHostClick(event: MouseEvent): void; onClick(event: Event): void; onFocus(): void; onBlur(): void; getHandleContext(): { checked: boolean; }; /** * @override * * @see {@link BaseEditableHolder.writeControlValue} * Writes the value to the control. */ writeControlValue(value: any, setModelValue: (value: any) => void): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class ToggleSwitchModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }