import { OnDestroy, OnInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { AnonymousConsent, AnonymousConsentsConfig, AnonymousConsentsService, AuthConfigService, GlobalMessageService, RoutingService } from '@spartacus/core'; import { Title, UserRegisterFacade, UserSignUp } from '@spartacus/user/profile/root'; import { BehaviorSubject, Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare class RegisterComponent implements OnInit, OnDestroy { protected userRegister: UserRegisterFacade; protected globalMessageService: GlobalMessageService; protected fb: FormBuilder; protected router: RoutingService; protected anonymousConsentsService: AnonymousConsentsService; protected anonymousConsentsConfig: AnonymousConsentsConfig; protected authConfigService: AuthConfigService; titles$: Observable; isLoading$: BehaviorSubject; private subscription; anonymousConsent$: Observable<{ consent: AnonymousConsent; template: string; }>; registerForm: FormGroup; constructor(userRegister: UserRegisterFacade, globalMessageService: GlobalMessageService, fb: FormBuilder, router: RoutingService, anonymousConsentsService: AnonymousConsentsService, anonymousConsentsConfig: AnonymousConsentsConfig, authConfigService: AuthConfigService); ngOnInit(): void; submitForm(): void; registerUser(): void; titleSelected(title: Title): void; collectDataFromRegisterForm(formData: any): UserSignUp; isConsentGiven(consent: AnonymousConsent): boolean; private isConsentRequired; private onRegisterUserSuccess; toggleAnonymousConsent(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }