import { ChangeDetectorRef, EventEmitter } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; import { CheckboxProperties } from '@engie-group/fluid-types'; import { CheckboxSize } from './checkbox.model'; import * as i0 from "@angular/core"; type CheckboxProps = Pick; export declare class CheckboxComponent implements ControlValueAccessor, CheckboxProps { private cdr; private readonly checkboxClassName; private _checked?; /** * Input id */ inputId?: string; /** * Input name */ name?: string; /** * Whether input is required or not */ isRequired?: boolean; /** * Whether the checkbox is checked or not */ set isChecked(value: boolean); get isChecked(): boolean; /** * Checkbox size * * @deprecated Use `scale` input instead. This input will be removed in future releases. */ size?: CheckboxSize; scale?: CheckboxProps['scale']; /** * Input value */ value?: string; /** * Whether the checkbox is disabled or not */ isDisabled?: boolean; /** * Whether the checkbox is in error state */ hasError?: boolean; /** * Whether the checkbox is in success state */ hasSuccess?: boolean; /** * Message to display as hint below checkbox */ subscriptMessage?: string; /** * @Deprecated * Message to display if checkbox is in error state */ errorMessage?: string; /** * Aria label, for accessibility reasons */ ariaLabel?: string; /** * Aria labelled by, for accessibility reasons */ ariaLabelledby?: string; /** * Whether checkbox is only presentational and state handled by a parent, can be useful for lists of checkboxes. * When set to `true`, the checkbox won't have any interaction. */ isPresentational?: boolean | undefined; /** * Whether the checkbox is in indeterminate state or not. */ indeterminate?: boolean; /** * Output that emits checked value on change only */ valueChange: EventEmitter; private _inputElement?; constructor(cdr: ChangeDetectorRef); /** * @ignore */ private _onChange; /** * @ignore */ private _onTouched; /** * @ignore */ _onChangeEvent(event: Event): void; /** * @ignore */ _onInputClick(event: Event): void; /** * Implemented as part of ControlValueAccessor. * @ignore */ writeValue(value: any): void; /** * Implemented as part of ControlValueAccessor. * @ignore */ registerOnChange(fn: any): void; /** * Implemented as part of ControlValueAccessor. * @ignore */ registerOnTouched(fn: any): void; /** * Implemented as part of ControlValueAccessor. * @ignore */ setDisabledState(isDisabled: boolean): void; /** * @ignore */ getSubscriptId(): string; private get checkboxSizeClass(); protected get checkboxClasses(): { [x: string]: boolean | undefined; 'nj-checkbox--error': boolean | undefined; 'nj-checkbox--success': boolean | undefined; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_indeterminate: unknown; } export {};