import * as i0 from '@angular/core'; import { OnInit, OnChanges, ElementRef, SimpleChanges } from '@angular/core'; import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, FormControl, ValidatorFn } from '@angular/forms'; declare class FocusDirective implements OnInit, OnChanges { private elementRef; /** * */ focusOnLoad: boolean; focusWhen?: boolean; private focused; constructor(elementRef: ElementRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Directive to allow only number input in text fields. * It supports integer and decimal numbers, negative numbers, min/max values, thousands separator. */ declare class NumberDirective implements ControlValueAccessor { private _value?; private _isDisabled?; private _decimalSeparator; private _thousandsSeparator; private _onChangeCallback?; private _onTouchedCallback?; private _elmRef; private _renderer; /** * The minimum number of digits to display after the decimal point. * Applied only when 'numberType' is set to 'decimal'. * @default 1 */ minFractionDigits: i0.InputSignalWithTransform; /** * The maximum number of digits to display after the decimal point. * Applied only when 'numberType' is set to 'decimal'. * @default 2 */ maxFractionDigits: i0.InputSignalWithTransform; /** * Whether to use grouping separators, such as thousands separators * @default false */ useGrouping: i0.InputSignalWithTransform; /** * Type of numbers to allow * 'decimal' - allow decimal numbers * 'integer' - allow integer numbers only * @default 'integer' */ numberType: i0.InputSignal<"integer" | "decimal">; constructor(); ngOnInit(): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; writeValue(value: any): void; protected _onKeyDown(event: KeyboardEvent): void; protected _onInput(value: string): void; private _formatIntegerPart; protected _onBlur(): void; protected _onPaste(event: ClipboardEvent): void; private _getInputState; private _formatNumber; private _isKeyAllowed; private _setProperty; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * A ControlValueAccessor for file input elements. It supports both single and multiple file selection. * It assigns the selected file(s) to the form control's value and handles disabled state. * @see https://angular.dev/api/forms/ControlValueAccessor */ declare class FileValueAccessor implements ControlValueAccessor { private readonly _renderer; private readonly _elementRef; protected _changeFn: (value: any) => {}; protected _touchedFn: () => {}; writeValue(value?: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; setDisabledState?(isDisabled: boolean): void; protected _onChange(e: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** Min validator */ declare class MinValidatorDirective implements Validator { min: i0.InputSignalWithTransform; validate(control: AbstractControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** Max validator */ declare class MaxValidatorDirective implements Validator { max: i0.InputSignalWithTransform; validate(control: AbstractControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class FileMinSizeValidatorDirective implements Validator { /** * Minimum file size in bytes. */ readonly fileMinSize: i0.InputSignalWithTransform; validate(control: AbstractControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class FileMaxSizeValidatorDirective implements Validator { /** * Maximum file size in bytes. */ readonly fileMaxSize: i0.InputSignalWithTransform; validate(control: AbstractControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class FileExtensionValidatorDirective implements Validator { /** * Allowed file extensions. */ readonly allowedExtensions: i0.InputSignal; validate(control: AbstractControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class EqualWithValidatorDirective implements Validator { targetValue?: string; inequalityMessage?: string; constructor(); validate(control: AbstractControl): { [key: string]: any; } | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class UrlValidatorDirective implements Validator { /** Directive is enabled or disabled */ iscUrl?: boolean | string; validate(control: FormControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class CustomValidatorDirective implements Validator { validator: i0.InputSignal<(value: any) => ValidationErrors | null>; constructor(); validate(control: AbstractControl): ValidationErrors | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ValidationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * FormModule * */ declare class FormModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare function equalWithValidator(targetValue?: string, inequalityMessage?: string): ValidatorFn; declare function fileMinSizeValidator(size: number): ValidatorFn; declare function fileMaxSizeValidator(size: number): ValidatorFn; declare function fileExtensionValidator(allowedExtensions?: string[]): ValidatorFn; export { CustomValidatorDirective, EqualWithValidatorDirective, FileExtensionValidatorDirective, FileMaxSizeValidatorDirective, FileMinSizeValidatorDirective, FileValueAccessor, FocusDirective, FormModule, MaxValidatorDirective, MinValidatorDirective, NumberDirective, UrlValidatorDirective, ValidationModule, equalWithValidator, fileExtensionValidator, fileMaxSizeValidator, fileMinSizeValidator };