import { Calculation, WorkerAccount } from "@salaxy/core"; import { NgCalculatorComponent } from "../calculator/calculator"; /** * Provides a simple calculation edit UI for the repository model. * Binds to SalaxyContext.calculations.current. */ export declare class NgCalcDetailComponent extends NgCalculatorComponent { /** Recalculates the current calculation - not stored to database */ recalculate(): void; /** The model points to the SalaxyContext.calculations.current */ model: Calculation; /** Creates a new calculation */ createNew(): void; /** Saves the current calculation to server */ save(): void; /** * Delete this item from repository. * Note that this may not always be possible. At least check model.isReadOnly */ delete(): void; /** Collection of workers that can be assigned to this calculation */ readonly workers: WorkerAccount[]; }