import { Result } from "@webiny/feature/api"; import type { CmsEntry, CmsEntryGetParams, CmsEntryValues, CmsModel } from "../../../types/index.js"; import type { EntryNotAuthorizedError, EntryNotFoundError, EntryPersistenceError } from "../../../domain/contentEntry/errors.js"; /** * GetEntry Use Case - Gets a single entry by query parameters (where + sort). * Uses list operation with limit 1 and returns first result or NotFoundError. */ export interface IGetEntryUseCase { execute(model: CmsModel, params: CmsEntryGetParams): Promise, UseCaseError>>; } export interface IGetEntryUseCaseErrors { notAuthorized: EntryNotAuthorizedError; notFound: EntryNotFoundError; storage: EntryPersistenceError; } type UseCaseError = IGetEntryUseCaseErrors[keyof IGetEntryUseCaseErrors]; /** Retrieve a content entry. */ export declare const GetEntryUseCase: import("@webiny/di").Abstraction; export declare namespace GetEntryUseCase { type Interface = IGetEntryUseCase; type Error = UseCaseError; type Params = CmsEntryGetParams; type Return = Promise, UseCaseError>>; } export {};