import { Type } from '@angular/core'; import { Observable } from 'rxjs'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Favorite, FavoriteType } from './favorite.model'; import * as i0 from "@angular/core"; export declare class FavoritesService { private snackBar; private storageKey; onUserWantToMigrateFavorites: (favorites: Favorite[]) => void; private favorites; private changes; private favoriteComponentTypeMap; constructor(snackBar: MatSnackBar, storageKey: string, favoriteTypecomponents: FavoriteType[]); remove(favorite: Favorite, toast?: boolean, save?: boolean): void; add(favorite: Favorite, toast?: boolean, save?: boolean): void; removeAll(toast?: boolean, save?: boolean): void; save(): void; find(predicate: (item: Favorite, index: number, favorites: Favorite[]) => boolean): Favorite | null; /** * Force favorites to update, then returns updated favorites * @returns Favorite[] */ forceFavoritesUpdate(): Favorite[]; getFavorites(type?: string): Favorite[]; setFavorites(favorites: Favorite[]): void; get changes$(): Observable; displayMessage(message: string): void; migrateFavoriteLine(favorite: Favorite): void; getComponent(type: string): Type; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }