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 IOutput } from "../../interfaces/dto/IOutput"; import { type ISessionTreeNode } from "../../interfaces/ISessionTreeNode"; import { SessionEngineCore } from "../SessionEngineCore"; /** * Manager responsible for outputs. * * The manager is created by the SessionEngineCore and can be accessed * via the `outputManager` property. */ export declare class OutputManager { private readonly _eventEngine; private readonly _logger; private readonly _outputLoader; private readonly _outputs; private readonly _outputsFreeze; private readonly _sessionEngineCore; private readonly _stateEngine; private readonly _uuidGenerator; private _allowOutputLoading; constructor(sessionEngineCore: SessionEngineCore); init(): void; get allowOutputLoading(): boolean; set allowOutputLoading(value: boolean); get jwtToken(): string | undefined; get loadSdtf(): boolean; get sessionId(): string | undefined; get outputs(): { [key: string]: IOutput; }; get outputsFreeze(): { [key: string]: boolean; }; get reloadSdtf(): boolean; set reloadSdtf(value: boolean); /** * Create outputs from the response DTO. */ createOutputsFromDto(): void; getCurrentOutputVersions(): { [key: string]: string; }; /** * Load cached outputs in parallel. * * @param outputMapping mapping of output ids to their versions * @param taskEventInfo optional task event info * @param retry whether to retry the request in case of failure * @returns promise with a mapping of output ids to their scene graph nodes */ loadCachedOutputsParallel(outputMapping: { [key: string]: string; }, taskEventInfo?: ITaskEventDescription, retry?: boolean): Promise<{ [key: string]: ITreeNode | undefined; }>; /** * Load the outputs and return the scene graph node of the result. * In case the outputs have a delay property, another customization request with the parameter set is sent. * * @param parameters the parameter set to update the session * @param outputs the outputs to load * @returns promise with a scene graph node */ loadOutputs(cancelRequest: (() => boolean) | undefined, taskEventInfo: ITaskEventDescription, retry?: boolean): Promise; /** * Load the outputs and return the scene graph node of the result. * In case the outputs have a delay property, another customization request with the parameter set is sent. * * @param parameters the parameter set to update the session * @param outputs the outputs to load * @returns promise with a scene graph node */ loadOutputsParallel(responseDto: ResBase, cancelRequest: (() => boolean) | undefined, taskEventInfo: ITaskEventDescription, retry?: boolean): Promise; /** * Save the output properties for displayname, order, tooltip and hidden * * @param outputs * @returns */ saveOutputProperties(outputs: { [key: string]: { displayname: string; hidden: boolean; order: number; tooltip: string; }; }, retry?: boolean): Promise; /** * Update the outputs and return the scene graph node of the result. * In case the outputs have a delay property, another customization request with the parameter set is sent. * * @param taskEventInfo optional task event info * @param waitForViewportUpdate whether to wait for the viewport update callbacks before returning * @returns promise with a scene graph node */ updateOutputs(taskEventInfo?: ITaskEventDescription, waitForViewportUpdate?: boolean): Promise; } //# sourceMappingURL=OutputManager.d.ts.map