import { Result } from "@webiny/feature/api"; import type { CmsEntry, CmsEntryValues, CmsModel } from "../../../types/index.js"; import type { EntryNotAuthorizedError, EntryPersistenceError } from "../../../domain/contentEntry/errors.js"; /** * GetEntriesByIds Use Case - Fetches multiple entries by their exact revision IDs. * Returns array of entries (excludes deleted entries via decorator). */ export interface IGetEntriesByIdsUseCase { execute(model: CmsModel, ids: string[]): Promise[], UseCaseError>>; } export interface IGetEntriesByIdsUseCaseErrors { notAuthorized: EntryNotAuthorizedError; storage: EntryPersistenceError; } type UseCaseError = IGetEntriesByIdsUseCaseErrors[keyof IGetEntriesByIdsUseCaseErrors]; /** Retrieve multiple content entries by their IDs. */ export declare const GetEntriesByIdsUseCase: import("@webiny/di").Abstraction; export declare namespace GetEntriesByIdsUseCase { type Interface = IGetEntriesByIdsUseCase; type Error = UseCaseError; type Return = Promise[], UseCaseError>>; } /** * GetEntriesByIdsRepository - Fetches entries from storage by IDs and transforms them. */ export interface IGetEntriesByIdsRepository { execute(model: CmsModel, ids: string[]): Promise[], RepositoryError>>; } export interface IGetEntriesByIdsRepositoryErrors { storage: EntryPersistenceError; } type RepositoryError = IGetEntriesByIdsRepositoryErrors[keyof IGetEntriesByIdsRepositoryErrors]; export declare const GetEntriesByIdsRepository: import("@webiny/di").Abstraction; export declare namespace GetEntriesByIdsRepository { type Interface = IGetEntriesByIdsRepository; type Error = RepositoryError; } export {};