import { ResBase } from "@shapediver/sdk.geometry-api-sdk-v2"; import { type ITreeNode } from "@shapediver/viewer.shared.node-tree"; import { type ITaskEventDescription } from "@shapediver/viewer.shared.types"; import { type ISessionTreeNode } from "../../interfaces/ISessionTreeNode"; import { SessionEngineCore } from "../SessionEngineCore"; /** * Manager responsible for for various customization tasks within the session engine. * * The manager is created by the SessionEngineCore and can be accessed * via the `customizationManager` property. */ export declare class CustomizationManager { private readonly _eventEngine; private readonly _httpClient; private readonly _logger; private readonly _performanceEvaluator; private readonly _sessionEngineCore; private readonly _stateEngine; private readonly _uuidGenerator; private readonly _utilsManager; private _customizationBusyModes; private _customizationProcess?; private _customizeOnParameterChange; private _throwOnCustomizationError; constructor(sessionEngineCore: SessionEngineCore); get customizationBusyModes(): string[]; set customizationBusyModes(value: string[]); get customizationProcess(): string | undefined; set customizationProcess(value: string | undefined); get customizeOnParameterChange(): boolean; set customizeOnParameterChange(value: boolean); get throwOnCustomizationError(): boolean; set throwOnCustomizationError(value: boolean); /** * Cancels the ongoing customization process, if any. * * This method removes the busy mode associated with the current customization process * and clears any customization busy modes. */ cancelCustomization(): void; /** * Customizes the session with updated parameters to get the updated scene graph node. * * @param parameters the parameter set to update the session * @returns promise with a scene graph node */ customize(force?: boolean, waitForViewportUpdate?: boolean): Promise; /** * Customizes the session in parallel with updated parameters to get the updated scene graph node. * * @param parameterValues the parameter set to update the session * @returns promise with a scene graph node */ customizeParallel(parameterValues: { [key: string]: unknown; }, loadOutputs?: boolean): Promise; /** * Customizes the session. * Called by customize and customizeParallel. * * @param cancelRequest function to check if the customization should be cancelled * @returns promise with a scene graph node */ customizeSession(parameters: { [key: string]: string; }, cancelRequest: () => boolean, taskEventInfo: ITaskEventDescription, parallel?: boolean, loadOutputs?: boolean, retry?: boolean): Promise; } //# sourceMappingURL=CustomizationManager.d.ts.map