import type { UmbElementVariantPublishModel } from '../types.js'; import type { UmbElementDetailModel } from '../../types.js'; import { UmbRepositoryBase, type UmbRepositoryResponse } from '../../../core/repository/index.js'; import type { UmbVariantId } from '../../../core/variant/index.js'; export declare class UmbElementPublishingRepository extends UmbRepositoryBase { #private; /** * Creates and publishes a new Element in a single operation * @param {UmbElementDetailModel} model - The Element to create * @param {Array} variantIds - The variants to publish after creating * @param {string | null} parentUnique - The unique of the parent to create under * @returns {*} * @memberof UmbElementPublishingRepository */ createAndPublish(model: UmbElementDetailModel, variantIds: Array, parentUnique?: string | null): Promise>; /** * Updates and publishes an existing Element in a single operation * @param {UmbElementDetailModel} model - The Element to update * @param {Array} variantIds - The variants to publish after updating * @returns {*} * @memberof UmbElementPublishingRepository */ updateAndPublish(model: UmbElementDetailModel, variantIds: Array): Promise>; /** * Publish one or more variants of an Element * @param {string} unique * @param {Array} variants * @returns {*} * @memberof UmbElementPublishingRepository */ publish(unique: string, variants: Array): Promise>; /** * Unpublish one or more variants of an Element * @param {string} id * @param {Array} variantIds * @returns {*} * @memberof UmbElementPublishingRepository */ unpublish(id: string, variantIds: Array): Promise>; /** * Get the published data of an element * @param {string} unique Element unique * @returns { Promise>} Published element * @memberof UmbElementPublishingRepository */ published(unique: string): Promise>; } export { UmbElementPublishingRepository as api };