import { Router } from '@angular/router'; import { ModalController } from '@ionic/angular'; import { PredefinedColors } from '@ionic/core'; import { ApiService } from './api.service'; import { FFUser } from '../interfaces/user-role-organization/user.interface'; import { Thing } from '../interfaces/things/thing.interface'; declare class ConfigConsent { /** * Object with roles as properties and consent resource Thing guid as values */ thingGuidByRole: any; /** * If true it will show terms of use even if user already agreed */ showEveryTime?: boolean; /** * Terms of use ion-content color */ contentColor?: PredefinedColors; /** * Accept button color */ acceptColor?: PredefinedColors; /** * Decline button color */ declineColor?: PredefinedColors; [key: string]: string | boolean; constructor(obj: any); } export declare class ConsentService { private apiService; private router; private modalController; protected user: FFUser; protected serviceSetForProfile: string; protected config: ConfigConsent; protected consentThing: Thing; protected organizationName: string; get consentAnswerDateUserKey(): string; get consentAnswerValueUserKey(): string; constructor(apiService: ApiService, router: Router, modalController: ModalController); activeProfileHasConsentConfigured(): Promise; handleConsentAtAppStart(): Promise; reviewConsent(): Promise; protected checkServiceIsSetForActiveProfile(): Promise; protected setServiceForActiveProfile(): Promise; protected getConsentConfiguration(orgGuid?: string): Promise; protected getConsentThing(): Promise; protected getOrganizationName(): Promise; protected consentShouldBePresentedAtAppStart(): boolean; protected presentConsentModal(currentAnswer?: boolean, answerDate?: any, backdropDismiss?: boolean): Promise; protected handleConsentAgreed(agreed: boolean): Promise; /** * Gets a nested value from an object key. * @example * getObjKeyValue(user, 'firstName'); getObjKeyValue(user, 'data.status'); */ protected getObjKeyValue(obj: any, key: string): any; /** * Sets a value on a nested object key * @example * setValueOnObjKey('John', user, 'firstName'); * setValueOnObjKey('archived', user, 'data.status'); */ protected setValueOnObjKey(value: any, obj: any, key: string): any; } export {};