import { ToggleButtonChangeEvent, ToggleButtonContentTemplateContext, ToggleButtonIconPos, ToggleButtonIconTemplateContext, ToggleButtonPassThrough } from "primeng/types/togglebutton"; import { BaseStyle } from "primeng/base"; import * as i0 from "@angular/core"; import { Provider, TemplateRef } from "@angular/core"; import { BaseEditableHolder } from "primeng/baseeditableholder"; import * as i2 from "primeng/bind"; import { Bind } from "primeng/bind"; import { InputSize } from "primeng/types/shared"; import * as i1 from "primeng/ripple"; import * as i3 from "primeng/api"; export * from "primeng/types/togglebutton"; export declare class ToggleButtonStyle extends BaseStyle { name: string; style: string; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-togglebutton-checked': any; 'p-invalid': any; 'p-disabled': any; 'p-togglebutton-sm p-inputfield-sm': boolean; 'p-togglebutton-lg p-inputfield-lg': boolean; 'p-togglebutton-fluid': any; })[]; content: string; icon: string; iconLeft: string; iconRight: string; label: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * * ToggleButton is used to select a boolean value using a button. * * [Live Demo](https://www.primeng.org/togglebutton/) * * @module togglebuttonstyle * */ export declare enum ToggleButtonClasses { /** * Class name of the root element */ root = "p-togglebutton", /** * Class name of the icon element */ icon = "p-togglebutton-icon", /** * Class name of the left icon */ iconLeft = "p-togglebutton-icon-left", /** * Class name of the right icon */ iconRight = "p-togglebutton-icon-right", /** * Class name of the label element */ label = "p-togglebutton-label" } export declare const TOGGLEBUTTON_VALUE_ACCESSOR: Provider; /** * ToggleButton is used to select a boolean value using a button. * @group Components */ export declare class ToggleButton extends BaseEditableHolder { componentName: string; $pcToggleButton: ToggleButton | undefined; bindDirectiveInstance: Bind; _componentStyle: ToggleButtonStyle; /** * Label for the on state. * @group Props */ onLabel: import("@angular/core").InputSignal; /** * Label for the off state. * @group Props */ offLabel: import("@angular/core").InputSignal; /** * Icon for the on state. * @group Props */ onIcon: import("@angular/core").InputSignal; /** * Icon for the off state. * @group Props */ offIcon: import("@angular/core").InputSignal; /** * Defines a string that labels the input for accessibility. * @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; /** * Identifier of the focus input to match a label defined for the component. * @group Props */ inputId: import("@angular/core").InputSignal; /** * Index of the element in tabbing order. * @group Props */ tabindex: import("@angular/core").InputSignalWithTransform; /** * Position of the icon. * @group Props */ iconPos: import("@angular/core").InputSignal; /** * When present, it specifies that the component should automatically get focus on load. * @group Props */ autofocus: import("@angular/core").InputSignalWithTransform; /** * Defines the size of the component. * @group Props */ size: import("@angular/core").InputSignal; /** * Whether selection can not be cleared. * @group Props */ allowEmpty: import("@angular/core").InputSignal; /** * Spans 100% width of the container when enabled. * @defaultValue undefined * @group Props */ fluid: import("@angular/core").InputSignalWithTransform; /** * Callback to invoke on value change. * @param {ToggleButtonChangeEvent} event - Custom change event. * @group Emits */ onChange: import("@angular/core").OutputEmitterRef; /** * Custom icon template. * @param {ToggleButtonIconTemplateContext} context - icon context. * @see {@link ToggleButtonIconTemplateContext} * @group Templates */ iconTemplate: import("@angular/core").Signal | undefined>; /** * Custom content template. * @param {ToggleButtonContentTemplateContext} context - content context. * @see {@link ToggleButtonContentTemplateContext} * @group Templates */ contentTemplate: import("@angular/core").Signal | undefined>; checked: import("@angular/core").WritableSignal; hasOnLabel: import("@angular/core").Signal; hasOffLabel: import("@angular/core").Signal; hasIcon: import("@angular/core").Signal; hasLabel: import("@angular/core").Signal; active: import("@angular/core").Signal; dataP: import("@angular/core").Signal; $tabindex: import("@angular/core").Signal; iconClass: import("@angular/core").Signal; labelText: import("@angular/core").Signal; ariaPressed: import("@angular/core").Signal<"true" | "false">; getTemplateContext(): { $implicit: boolean; }; onAfterViewChecked(): void; onKeyDown(event: KeyboardEvent): void; toggle(event: Event): void; onInit(): void; onBlur(): void; /** * @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 ToggleButtonModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }