import type { EntityServiceContext } from './types.js'; export interface CreateEntityInput { entityTypeName: string; entityData: Record; parentEntityId?: string; } /** * Creates a new entity in the definition. * * Generates a new ID for the entity using the entity type's ID generation. * For nested entity types, `parentEntityId` specifies which parent to add to. * * @returns A new definition with the entity added (original is not modified) */ export declare function createEntity({ entityTypeName, entityData, parentEntityId }: CreateEntityInput, context: EntityServiceContext): Record; export interface UpdateEntityInput { entityTypeName: string; entityId: string; entityData: Record; } /** * Updates an existing entity by ID. * * Replaces the entity data while preserving the entity's ID. * * @returns A new definition with the entity updated (original is not modified) */ export declare function updateEntity({ entityTypeName, entityId, entityData }: UpdateEntityInput, context: EntityServiceContext): Record; export interface DeleteEntityInput { entityTypeName: string; entityId: string; } /** * Deletes an entity by ID. * * @returns A new definition with the entity removed (original is not modified) */ export declare function deleteEntity({ entityTypeName, entityId }: DeleteEntityInput, context: EntityServiceContext): Record; //# sourceMappingURL=entity-write.d.ts.map