import { Result } from "@webiny/feature/api"; import { GetSingletonEntryUseCase as UseCaseAbstraction } from "./abstractions.js"; import type { CmsEntry, CmsEntryValues, CmsModel } from "../../../types/index.js"; import { CreateEntryUseCase } from "../../../features/contentEntry/CreateEntry/index.js"; import { GetEntryByIdUseCase } from "../../../features/contentEntry/GetEntryById/index.js"; /** * GetSingletonEntryUseCase - Gets the singleton entry for a model. * * Responsibilities: * - Validate model is marked as singleton * - Generate singleton entry ID from model ID * - Try to get existing entry * - If not found, create a new entry with skipValidators: ["required"] * - Delegate to generic GetEntry and CreateEntry use cases */ declare class GetSingletonEntryUseCaseImpl implements UseCaseAbstraction.Interface { private getEntryById; private createEntry; constructor(getEntryById: GetEntryByIdUseCase.Interface, createEntry: CreateEntryUseCase.Interface); execute(model: CmsModel): Promise, UseCaseAbstraction.Error>>; } export declare const GetSingletonEntryUseCase: typeof GetSingletonEntryUseCaseImpl & { __abstraction: import("@webiny/di").Abstraction; }; export {};