import { AbstractControl, FormGroup } from '@angular/forms'; import { Observable } from 'rxjs'; import { Form } from '../models/form'; import * as i0 from "@angular/core"; /** * Service to handle form-related operations such as validation and focus management. */ export declare class FormService { private readonly _focusRequested; readonly focusRequested: Observable; constructor(); /** * Requests to focus on the specified control. */ readonly requestFocus: (control: AbstractControl) => void; /** * Validates the form and returns whether it is valid. If any invalid control found, it automatically scrolls to it. */ validate(form: TForm, scrollToInvalid?: boolean): Promise; getInvalidControl(formGroup: FormGroup): AbstractControl | null; private _isValid; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }