import { UseCase } from '../../../core/domain/useCases/UseCase'; import { MetadataBlock } from '../..'; import { IMetadataBlocksRepository } from '../repositories/IMetadataBlocksRepository'; export declare class GetCollectionMetadataBlocks implements UseCase { private metadataBlocksRepository; constructor(metadataBlocksRepository: IMetadataBlocksRepository); /** * Returns a MetadataBlock array containing the metadata blocks from the requested collection. * * @param {number | string} [collectionIdOrAlias = ':root'] - A generic collection identifier, which can be either a string (for queries by CollectionAlias), or a number (for queries by CollectionId) * If this parameter is not set, the default value is: ':root' * @param {boolean} [onlyDisplayedOnCreate=false] - Indicates whether or not to return only the metadata blocks that are displayed on dataset creation. The default value is false. * @param {string} [datasetType] - The name of the dataset type. If provided, additional fields from metadata blocks linked to this dataset type will be returned. * @returns {Promise} */ execute(collectionIdOrAlias?: number | string, onlyDisplayedOnCreate?: boolean, datasetType?: string): Promise; }