import { CostCenter, EntitiesModel, SearchConfig } from '@spartacus/core'; import { Observable } from 'rxjs'; import { Budget } from '../../model/budget.model'; export declare abstract class CostCenterAdapter { /** * Abstract method used to load costCenterManagement's details data. * CostCenter's data can be loaded from alternative sources, as long as the structure * converts to the `CostCenter`. * * @param userId The `userId` for given costCenterManagement * @param costCenterCode The `costCenterCode` for given costCenterManagement */ abstract load(userId: string, costCenterCode: string): Observable; abstract loadList(userId: string, params?: SearchConfig): Observable>; abstract create(userId: string, costCenter: CostCenter): Observable; abstract update(userId: string, costCenterCode: string, costCenter: CostCenter): Observable; abstract loadBudgets(userId: string, costCenterCode: string, params?: SearchConfig): Observable>; abstract assignBudget(userId: string, costCenterCode: string, budgetCode: string): Observable; abstract unassignBudget(userId: string, costCenterCode: string, budgetCode: string): Observable; }