import { FocusableOption } from '@angular/cdk/a11y'; import * as i0 from '@angular/core'; import { AfterViewInit, OnChanges, ElementRef, EventEmitter, SimpleChanges, InjectionToken, Provider } from '@angular/core'; import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, CheckboxRequiredValidator } from '@angular/forms'; import { T as ThemePalette } from '../palette.d-BSSFKjO6.js'; import { M as MatCommonModule } from '../common-module.d-C8xzHJDr.js'; import '@angular/cdk/bidi'; /** * Represents the different states that require custom transitions between them. * @docs-private */ declare enum TransitionCheckState { /** The initial state of the component before any user interaction. */ Init = 0, /** The state representing the component when it's becoming checked. */ Checked = 1, /** The state representing the component when it's becoming unchecked. */ Unchecked = 2, /** The state representing the component when it's becoming indeterminate. */ Indeterminate = 3 } /** * @deprecated Will stop being exported. * @breaking-change 19.0.0 */ declare const MAT_CHECKBOX_CONTROL_VALUE_ACCESSOR: any; /** Change event object emitted by checkbox. */ declare class MatCheckboxChange { /** The source checkbox of the event. */ source: MatCheckbox; /** The new `checked` value of the checkbox. */ checked: boolean; } declare class MatCheckbox implements AfterViewInit, OnChanges, ControlValueAccessor, Validator, FocusableOption { _elementRef: ElementRef; private _changeDetectorRef; private _ngZone; _animationMode?: "NoopAnimations" | "BrowserAnimations" | null | undefined; private _options; /** Focuses the checkbox. */ focus(): void; /** Creates the change event that will be emitted by the checkbox. */ protected _createChangeEvent(isChecked: boolean): MatCheckboxChange; /** Gets the element on which to add the animation CSS classes. */ protected _getAnimationTargetElement(): HTMLInputElement; /** CSS classes to add when transitioning between the different checkbox states. */ protected _animationClasses: { uncheckedToChecked: string; uncheckedToIndeterminate: string; checkedToUnchecked: string; checkedToIndeterminate: string; indeterminateToChecked: string; indeterminateToUnchecked: string; }; /** * Attached to the aria-label attribute of the host element. In most cases, aria-labelledby will * take precedence so this may be omitted. */ ariaLabel: string; /** * Users can specify the `aria-labelledby` attribute which will be forwarded to the input element */ ariaLabelledby: string | null; /** The 'aria-describedby' attribute is read after the element's label and field type. */ ariaDescribedby: string; /** * Users can specify the `aria-expanded` attribute which will be forwarded to the input element */ ariaExpanded: boolean; /** * Users can specify the `aria-controls` attribute which will be forwarded to the input element */ ariaControls: string; /** Users can specify the `aria-owns` attribute which will be forwarded to the input element */ ariaOwns: string; private _uniqueId; /** A unique id for the checkbox input. If none is supplied, it will be auto-generated. */ id: string; /** Returns the unique id for the visual hidden input. */ get inputId(): string; /** Whether the checkbox is required. */ required: boolean; /** Whether the label should appear after or before the checkbox. Defaults to 'after' */ labelPosition: 'before' | 'after'; /** Name value will be applied to the input element if present */ name: string | null; /** Event emitted when the checkbox's `checked` value changes. */ readonly change: EventEmitter; /** Event emitted when the checkbox's `indeterminate` value changes. */ readonly indeterminateChange: EventEmitter; /** The value attribute of the native input element */ value: string; /** Whether the checkbox has a ripple. */ disableRipple: boolean; /** The native `` element */ _inputElement: ElementRef; /** The native `