import { UmbRepositoryBase } from '../../core/repository/index.js'; import type { DocumentUrlInfoModel } from '../../core/backend-api/index.js'; import type { UmbControllerHost } from '../../../libs/controller-api/index.js'; export declare class UmbPreviewRepository extends UmbRepositoryBase { constructor(host: UmbControllerHost); /** * Gets the preview URL for a document. * @param {string} unique The unique identifier of the document. * @param {string} providerAlias The alias of the URL provider registered on the server. * @param {string | undefined} culture The culture to preview (undefined means invariant). * @param {string | undefined} segment The segment to preview (undefined means no specific segment). * @returns {DocumentUrlInfoModel} The preview URLs of the document. * @memberof UmbPreviewRepository */ getPreviewUrl(unique: string, providerAlias: string, culture?: string, segment?: string): Promise; /** * Gets the published URL info for a document. * @param {string} unique The unique identifier of the document. * @param {string | undefined} culture The culture to preview (undefined means invariant). * @returns {DocumentUrlInfoModel} The published URL info of the document. * @memberof UmbPreviewRepository */ getPublishedUrl(unique: string, culture?: string): Promise; /** * Exits preview mode. * @returns {Promise} * @memberof UmbPreviewRepository */ exit(): Promise; }