import { Result } from "@webiny/feature/api"; import type { CmsEntry, CmsEntryValues, CmsModel } from "../../../types/index.js"; import type { EntryNotFoundError, EntryPersistenceError } from "../../../domain/contentEntry/errors.js"; /** * GetRevisionById Use Case - Fetches a specific entry revision by ID. * Returns the entry or fails with EntryNotFoundError if not found or deleted. */ export interface IGetRevisionByIdUseCase { execute(model: CmsModel, id: string): Promise, UseCaseError>>; } export interface IGetRevisionByIdUseCaseErrors { notFound: EntryNotFoundError; storage: EntryPersistenceError; } type UseCaseError = IGetRevisionByIdUseCaseErrors[keyof IGetRevisionByIdUseCaseErrors]; /** Retrieve a specific entry revision by ID. */ export declare const GetRevisionByIdUseCase: import("@webiny/di").Abstraction; export declare namespace GetRevisionByIdUseCase { type Interface = IGetRevisionByIdUseCase; type Error = UseCaseError; type Return = Promise, UseCaseError>>; } /** * GetRevisionByIdRepository - Fetches entry revision from storage. * Returns the entry or fails with EntryNotFoundError if not found. */ export interface IGetRevisionByIdRepository { execute(model: CmsModel, id: string): Promise, RepositoryError>>; } export interface IGetRevisionByIdRepositoryErrors { notFound: EntryNotFoundError; storage: EntryPersistenceError; } type RepositoryError = IGetRevisionByIdRepositoryErrors[keyof IGetRevisionByIdRepositoryErrors]; export declare const GetRevisionByIdRepository: import("@webiny/di").Abstraction; export declare namespace GetRevisionByIdRepository { type Interface = IGetRevisionByIdRepository; type Error = RepositoryError; } export {};