import { Result } from "@webiny/feature/api"; import type { CmsEntry, CmsEntryValues, CmsModel } from "../../../types/index.js"; import type { EntryNotAuthorizedError, EntryNotFoundError, EntryPersistenceError } from "../../../domain/contentEntry/errors.js"; /** * GetEntryById Use Case - Fetches a single entry by its exact revision ID. * Returns entry or fails with EntryNotFoundError if not found or deleted. */ export interface IGetEntryByIdUseCase { execute(model: CmsModel, id: string): Promise, UseCaseError>>; } export interface IGetEntryByIdUseCaseErrors { notAuthorized: EntryNotAuthorizedError; notFound: EntryNotFoundError; storage: EntryPersistenceError; } type UseCaseError = IGetEntryByIdUseCaseErrors[keyof IGetEntryByIdUseCaseErrors]; /** Retrieve a content entry by its exact revision ID. */ export declare const GetEntryByIdUseCase: import("@webiny/di").Abstraction; export declare namespace GetEntryByIdUseCase { type Interface = IGetEntryByIdUseCase; type Error = UseCaseError; type Return = Promise, UseCaseError>>; } export {};