import { UseCase } from '../../../core/domain/useCases/UseCase'; import { IDatasetsRepository } from '../repositories/IDatasetsRepository'; import { DatasetLicenseUpdateRequest } from '../dtos/DatasetLicenseUpdateRequest'; export declare class UpdateDatasetLicense implements UseCase { private readonly datasetsRepository; constructor(datasetsRepository: IDatasetsRepository); /** * Updates the license of a dataset by applying it to the draft version. If no draft exists, a new one is created by the API. * Supports either predefined license by name or custom terms of use and access. * * @param {number | string} datasetId - The dataset identifier, which can be a string (for persistent identifiers), or a number (for numeric identifiers). * @param {DatasetLicenseUpdateRequest} payload - The payload containing the license name or custom terms of use and access. * @returns {Promise} - This method does not return anything upon successful completion. */ execute(datasetId: number | string, payload: DatasetLicenseUpdateRequest): Promise; }