import { UseCase } from '../../../core/domain/useCases/UseCase'; import { CollectionDTO } from '../dtos/CollectionDTO'; import { ICollectionsRepository } from '../repositories/ICollectionsRepository'; export declare class CreateCollection implements UseCase { private collectionsRepository; constructor(collectionsRepository: ICollectionsRepository); /** * Creates a new collection, given a CollectionDTO object and an optional collection identifier, which defaults to :root. * * @param {CollectionDTO} [newCollection] - CollectionDTO object including the new collection data. * @param {string} [parentCollectionId] - Specifies the parent collection identifier (optional, defaults to :root). * @returns {Promise} - The created collection identifier. * @throws {WriteError} - If there are errors while writing data. */ execute(newCollection: CollectionDTO, parentCollectionId?: number | string): Promise; }