import { Result } from "@webiny/feature/api"; import { DeleteModelUseCase } from "./abstractions.js"; import { CmsContext } from "../../../features/shared/abstractions.js"; /** * DeleteModelWithEntryCleanup - Decorator that handles entry cleanup/validation before deletion. * * Responsibilities: * 1. For singleton models: Delete all entries (latest + deleted) * 2. For regular models: Check if there are any entries - if yes, throw error * 3. Only proceed to the base use case if validations pass */ declare class DeleteModelWithEntryCleanupImpl implements DeleteModelUseCase.Interface { private cmsContext; private decoratee; constructor(cmsContext: CmsContext.Interface, decoratee: DeleteModelUseCase.Interface); execute(modelId: string): Promise>; private deleteSingletonEntries; private canDelete; } export declare const DeleteModelWithEntryCleanup: typeof DeleteModelWithEntryCleanupImpl & { __abstraction: import("@webiny/di").Abstraction; }; export {};