import { ReqCustomization, ReqExport, ResBase, ResExport } from "@shapediver/sdk.geometry-api-sdk-v2"; import { type IExport } from "../../interfaces/dto/IExport"; import { SessionEngineCore } from "../SessionEngineCore"; /** * Manager for exports and export related operations. * * The manager is created by the SessionEngineCore and can be accessed * via the `exportManager` property. */ export declare class ExportManager { private readonly _eventEngine; private readonly _exports; private readonly _sessionEngineCore; private readonly _uuidGenerator; constructor(sessionEngineCore: SessionEngineCore); get exports(): { [key: string]: IExport; }; /** * Cleans the provided export parameters by converting names/displaynames to ids * and filling in missing parameters with current session values. * * @param parameters The provided export parameters * @returns The cleaned export parameters */ cleanExportParameters(parameters: { [key: string]: unknown; }): ReqCustomization; /** * Creates export objects from the current response DTO. * * Called internally after each customization or export request to update the exports. * Exports of type EMAIL and DOWNLOAD are created. * * Called by SessionEngineCore.updateResponseDto. */ createExportsFromDto(): void; /** * Requests an export. * * @param exportId The id of the export to request * @param parameters The parameters to use for the export * @param maxWaitTime The maximum time to wait for the export to complete * @param retry Whether to retry the request in case of failure * @returns Promise with the requested export */ requestExport(exportId: string, parameters: { [key: string]: unknown; }, maxWaitTime: number, retry?: boolean): Promise; /** * Requests multiple exports. * * @param body The export request body * @param loadOutputs Whether to load outputs as part of the export request * @param maxWaitMsec The maximum time to wait for the export to complete * @param retry Whether to retry the request in case of failure * @returns Promise with the response DTO */ requestExports(body: ReqExport, loadOutputs?: boolean, maxWaitMsec?: number, retry?: boolean): Promise; /** * Save the export properties for displayname, order, tooltip and hidden * * @param exports * @returns */ saveExportProperties(exports: { [key: string]: { displayname: string; hidden: boolean; order: number; tooltip: string; }; }, retry?: boolean): Promise; } //# sourceMappingURL=ExportManager.d.ts.map