import { OnDestroy, OnInit } from '@angular/core'; import { UniversalCookieConsentViewState } from '../../models/universal-cookie-consent-view-state.model'; import { UniversalCookieConsentService } from '../../services/universal-cookie-consent.service'; import { Observable, Subscription } from 'rxjs'; import { UniversalCookieConsentOptions } from '../../models/universal-cookie-consent-options.model'; import { FormBuilder, FormGroup } from '@angular/forms'; export declare class UniversalCookieConsentComponent implements OnInit, OnDestroy { protected service: UniversalCookieConsentService; protected fb: FormBuilder; readonly ViewState: typeof UniversalCookieConsentViewState; /** * The current view state */ viewState$: Observable; /** * The current options */ options$: Observable; /** * Whether to show or hide the modal */ showModal$: Observable; /** * The currently granted consents */ grantedConsents$: Observable; /** * Form group for the customize view */ customizeFormGroup: FormGroup; /** * Component subscription */ subscription: Subscription; constructor(service: UniversalCookieConsentService, fb: FormBuilder); ngOnInit(): void; ngOnDestroy(): void; /** * Called when the user clicks the accept button, grants all consents and closes the modal */ onAcceptClicked(): Promise; /** * Called when the user clicks the customize button, switches the view state */ onCustomizeClicked(): void; /** * Called when the user clicks the back button, switches the view state */ onBackClicked(): void; /** * Called when the user clicks the save button, updates the granted consents and closed the modal */ onSaveCustomizedClicked(): Promise; /** * Update the form with the given options * @param grantedConsents * @param options */ protected updateCustomizeForm(grantedConsents: string[], options: UniversalCookieConsentOptions): void; }