import { Result } from "@webiny/feature/api"; import { DeleteModelRepository as RepositoryAbstraction } from "./abstractions.js"; import { ModelCache, ModelsFetcher } from "../../../features/contentModel/shared/abstractions.js"; import { StorageOperations } from "../../../features/shared/abstractions.js"; import type { CmsModel } from "../../../types/index.js"; /** * DeleteModelRepository - Validates and deletes a model from storage. * * Responsibilities: * - Validate model is not defined via plugin (core domain rule) * - Delete from storage * - Clear ModelCache after successful deletion * * Note: Entry validation and cleanup is handled by decorator */ declare class DeleteModelRepositoryImpl implements RepositoryAbstraction.Interface { private modelCache; private modelsFetcher; private storageOperations; constructor(modelCache: ModelCache.Interface, modelsFetcher: ModelsFetcher.Interface, storageOperations: StorageOperations.Interface); execute(model: CmsModel): Promise>; } export declare const DeleteModelRepository: typeof DeleteModelRepositoryImpl & { __abstraction: import("@webiny/di").Abstraction; }; export {};