/** * EAV Store Module (VCS-integrated) * * Persists CMS / knowledge-graph entities via vcs:storeAssert|Retract|Link|Unlink * ops in the integration journal (.trellis/ops.json). See ADR 0008. */ import type { Atom } from '../core/store/eav-store.js'; import type { EntityRecord } from '../core/kernel/trellis-kernel.js'; import type { VcsOp } from './types.js'; import type { EngineContext } from './engine-context.js'; export interface StoreEntityCreateOptions { links?: Array<{ attribute: string; targetEntityId: string; }>; } export declare function getEntity(ctx: EngineContext, entityId: string): EntityRecord | null; export declare function listEntities(ctx: EngineContext, type?: string, filters?: Record, opts?: { includeVcs?: boolean; }): EntityRecord[]; export declare function createEntity(ctx: EngineContext, entityId: string, type: string, attributes?: Record, opts?: StoreEntityCreateOptions): Promise; export declare function updateEntity(ctx: EngineContext, entityId: string, updates: Record): Promise; export declare function deleteEntity(ctx: EngineContext, entityId: string): Promise; export declare function addFact(ctx: EngineContext, entityId: string, attribute: string, value: Atom): Promise; export declare function removeFact(ctx: EngineContext, entityId: string, attribute: string, value: Atom): Promise; export declare function addLink(ctx: EngineContext, sourceId: string, attribute: string, targetId: string): Promise; export declare function removeLink(ctx: EngineContext, sourceId: string, attribute: string, targetId: string): Promise; //# sourceMappingURL=store.d.ts.map