import { RendererFactory2 } from '@angular/core'; import { Observable } from 'rxjs'; import { UniversalCookieConsentViewState } from '../models/universal-cookie-consent-view-state.model'; import { UniversalCookieConsentOptions } from '../models/universal-cookie-consent-options.model'; /** @dynamic */ export declare class UniversalCookieConsentService { private defaultOptions; private document; private platformId; /** * The current view state */ private viewState$; /** * The current options */ private options$; /** * The currently granted consents */ private grantedConsents$; private renderer; constructor(defaultOptions: UniversalCookieConsentOptions, document: any, platformId: Object, rendererFactory: RendererFactory2); getGrantedConsents(): Observable; setGrantedConsents(consents: string[]): void; /** * Get the current view state */ getViewState(): Observable; /** * Get the current options */ getOptions(): Observable; /** * Set the current view state * @param viewState */ setViewState(viewState: UniversalCookieConsentViewState): void; /** * Set the cookie consent options * @param options */ setOptions(options: Partial): void; /** * Show the cookie consent prompt * @param options The cookie consent options passed to the cookie consent prompt */ show(options?: UniversalCookieConsentOptions): any; show(showAdvanced: boolean, options?: UniversalCookieConsentOptions): any; /** * Called when the granted consents have changed * @param consents */ protected onConsentsUpdated(consents: string[] | null): void; /** * Update the body element's overflow property as needed */ protected updateBodyScroll(viewState: UniversalCookieConsentViewState, options: UniversalCookieConsentOptions): void; /** * Automatically show the consent modal if the autoShow options is set and the autoShow conditions are met * @param viewState * @param options * @param consents */ protected handleAutoShow(viewState: UniversalCookieConsentViewState, options: UniversalCookieConsentOptions, consents: string[] | null): void; }