import { UseCase } from '../../../core/domain/useCases/UseCase'; import { CreateTemplateDTO } from '../dtos/CreateTemplateDTO'; import { ITemplatesRepository } from '../repositories/ITemplatesRepository'; export declare class CreateTemplate implements UseCase { private templatesRepository; constructor(templatesRepository: ITemplatesRepository); /** * Creates a template in the specified collection. * * @param {CreateTemplateDTO} template - Template definition payload. * @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'. * @returns {Promise} */ execute(template: CreateTemplateDTO, collectionIdOrAlias?: number | string): Promise; }