import { CrudUpdateConfig } from "./crud-update-config";
import { WithId } from "../../../../../fd-toolbox-core/types/resource-with-id";
import { GenericCrudResult } from "../../../../../fd-toolbox/types/crud/crud-result";
import { ResourceMeta } from "../../../core/resource-meta";
/**
 * Configuration object passed to pre-create CRUD event handlers.
 * Used to provide context and results to custom logic before a resource is created.
 */
export interface PreCreateCrudHandlerConfig<T extends WithId = WithId> {
    /** The result object for the create operation (can be mutated) */
    crudServiceResult: GenericCrudResult<T>;
    /** The resource object to be created */
    createResource: T;
    /** The configuration for the create operation */
    crudUpdateConfig: CrudUpdateConfig<T>;
    /** Metadata for the resource type */
    resourceMeta: ResourceMeta;
}
