declare const _default: ClassificationFileService; export default _default; /** * Service for creating files with classification plan and requalifying documents. * Centralizes business logic for folder hierarchy creation, file creation with plan, * and document requalification. */ declare class ClassificationFileService { /** * Ensures the folder hierarchy exists under the given parent. * For each folder in pathFull, attempts to create it. If it already exists (409), * retrieves the existing folder ID. * @param {string} parentId - The parent node ID to start from * @param {Object[]} pathFull - Array of folder objects { name, type, properties } * @returns {Promise} The ID of the last folder in the hierarchy */ ensureFolderHierarchy(parentId: string, pathFull: any[]): Promise; /** * Gets the documentLibrary node ID for a workspace. * @param {string} workspaceSiteId - The site ID of the workspace * @returns {Promise} The documentLibrary node ID */ getDocumentLibraryId(workspaceSiteId: string): Promise; /** * Creates a file with classification plan by copying a template, placing it * in the correct folder hierarchy, and applying metadata. * @param {string} workspaceSiteId - The workspace site ID * @param {Object[]} pathFull - Folder hierarchy to create * @param {string} templateNodeId - Template node ID to copy * @param {string} fileName - Final file name * @param {Object} metadata - Metadata properties to apply * @param {Object} nature - Nature object with type and aspects * @returns {Promise} The created node */ createFileWithPlan(workspaceSiteId: string, pathFull: any[], templateNodeId: string, fileName: string, metadata: any, nature: any): Promise; /** * Requalifies an existing document by moving it to the correct folder hierarchy * and updating its metadata/type. * @param {string} nodeId - The document node ID to requalify * @param {string} workspaceSiteId - The workspace site ID * @param {Object[]} pathFull - New folder hierarchy * @param {Object} metadata - New metadata properties * @param {string} newFileName - New file name (optional) * @param {Object} nature - Nature object with type and aspects * @returns {Promise} The updated node */ requalifyDocument(nodeId: string, workspaceSiteId: string, pathFull: any[], metadata: any, newFileName: string, nature: any, destinationNodeId: any): Promise; /** * Uploads files with metadata according to a classification plan using the injector. * Delegates to the upload store to leverage worker-based implementation for better * performance and progress tracking. * @param {string} workspaceSiteId The site ID of the workspace (e.g., "my-workspace"). * @param {Object[]} pathFull Array of folder objects with name, type, and properties for path.full. * @param {File[]} files The files to upload. * @param {Object} metadata The metadata object to apply to the uploaded files. * @param {Object[]} fileRenames Array of objects with original and new names. */ uploadWithPlan(workspaceSiteId: string, pathFull: any[], files: File[], metadata: any, fileRenames: any[], destinationNodeId: any): Promise; } //# sourceMappingURL=ClassificationFileService.d.ts.map