import { Result } from "@webiny/feature/api"; import type { CmsEntry, CmsEntryValues, CmsModel } from "../../../types/index.js"; import type { GenericRecord } from "@webiny/api/types.js"; import type { EntryNotAuthorizedError, EntryNotFoundError } from "../../../domain/contentEntry/errors.js"; import type { IUpdateEntryUseCaseErrors } from "../UpdateEntry/abstractions.js"; /** * UpdateRevisionDescription Use Case */ export interface IUpdateRevisionDescriptionUseCase { execute(model: CmsModel, id: string, revisionDescription: string | undefined): Promise, UseCaseError>>; } export interface IUpdateRevisionDescriptionUseCaseErrors extends IUpdateEntryUseCaseErrors { notAuthorized: EntryNotAuthorizedError; notFound: EntryNotFoundError; } type UseCaseError = IUpdateRevisionDescriptionUseCaseErrors[keyof IUpdateRevisionDescriptionUseCaseErrors]; /** Update a content revision description. */ export declare const UpdateRevisionDescriptionUseCase: import("@webiny/di").Abstraction; export declare namespace UpdateRevisionDescriptionUseCase { type Interface = IUpdateRevisionDescriptionUseCase; type Meta = GenericRecord; type Error = UseCaseError; type Return = Promise, UseCaseError>>; } export {};