import type { ProductPlanner } from './recipe-details-products-planner.service'; import { HttpClient } from '@angular/common/http'; import { Service } from 'miam-jsonapi'; import { BehaviorSubject, Observable } from 'rxjs'; import { Item, Menu, MenuItem, MenuRecipe } from '../_models'; import { PointOfSalesService } from './point-of-sales.service'; import * as i0 from "@angular/core"; export declare type PlannerItemStatus = 'ticked' | 'unselected' | 'unavailable'; export declare class MealsPlannerService extends Service { private http; private posService; resource: typeof Menu; type: string; menuId: string; menus$: BehaviorSubject; menuPrice$: BehaviorSubject; recipesInMenu: Map; private recipesInMenuInitialized; constructor(http: HttpClient, posService: PointOfSalesService); /** * If the current POS is different from the menu's POS, update the menu's POS */ checkPosChange(): void; createMenu(): Observable; deleteMenu(menuId: string): Observable; updateMenu(menuId: string, toUpdate: Partial): Observable; isRecipeInMenu(recipeId: string): Observable; menuToBasket(basketId: string): Observable; addRecipeToMenu(recipeId: string, guests: number, hasPos?: boolean, toPickProducts?: ProductPlanner[]): Observable; removeRecipeFromMenu(recipeId: string): Observable; updateRecipeFromMenu(menuRecipeId: string, guests: number): Observable; fetchMenuRecipes(): Observable; fetchMenuTitle(): Observable; getMenuRecipeId(recipeId: string): Observable; getGuestsForRecipe(recipeId: string): Observable; private fetchGuestsFromMenuRecipe; private fetchGuestsFromMenu; getAllMenuItems(): Observable<{ data: MenuItem[]; included: Item[]; }>; private combineMenuItemsPage; patchUserSelection(status: PlannerItemStatus, itemId: number, ingredientDefId: string): Observable; rejectRecipe(recipeId: string): Observable; private getMenuPrice; updateMenuPrice(): void; static ɵfac: i0.ɵɵFactoryDef; static ɵprov: i0.ɵɵInjectableDef; } //# sourceMappingURL=meals-planner.service.d.ts.map