import { BehaviorSubject, Observable } from 'rxjs'; import * as i0 from "@angular/core"; /** * * @interface UserActivityEntry * * UserActivityEntry is a single entry at the user activity list * */ export declare interface UserActivityEntry { category: string; description: string; url: string; dateCreated: Date; } /** * UserActivityService * * Handles the user activity tracking. * */ export declare class UserActivityService { protected userActivityEntries$: BehaviorSubject; protected maxItems: number; protected list: Array; constructor(); /** * * Adds a single item at the userActivity service. * * @param {UserActivityEntry} entry The entry to be written * */ setItem(entry: UserActivityEntry): Promise; /** * * Get the list of the user activity. * * @returns {Array} The list of the entries * */ getItems(): Promise>; /** * * Get the list of the user activity as observable * */ getItemsAsObservable(): Promise>>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }