export { BaseRepository, BehaviorConfig, ListOptions } from './base-repository.js';
export { RequesterContext, RequesterScope, requireRequester, requireRequesterScope, tryGetRequester, withOrgScope, withRequester, withSuperuserScope, withUserScope } from './tenant-context.js';
export { BaseService, IBaseRepository } from './base-service.js';
export { EventCategory, buildChangeEvents, buildLifecycleEvent, diffSnapshots, emitSafely, entitySnapshot } from './lifecycle-events.js';
export { BaseFindByIdUseCase, BaseListUseCase, IFindByIdService, IListService } from './base-read-use-cases.js';
export { IntegrationFkResolver, IntegrationUpsertConfig } from './integration-upsert-config.js';
export { IntegratedEntityRepository } from './integrated-entity-repository.js';
export { JunctionIntegrationConfig, JunctionIntegrationRepository, buildCompositeExternalId, parseCompositeExternalId } from './junction-integration-repository.js';
export { ActivityEntityRepository } from './activity-entity-repository.js';
export { MetadataEntityRepository } from './metadata-entity-repository.js';
export { KnowledgeEntityRepository } from './knowledge-entity-repository.js';
export { IIntegratedEntityRepository, IntegratedEntityService } from './integrated-entity-service.js';
export { ActivityEntityService, IActivityEntityRepository } from './activity-entity-service.js';
export { IMetadataEntityRepository, MetadataEntityService } from './metadata-entity-service.js';
export { KnowledgeEntityService } from './knowledge-entity-service.js';
export { WithAnalytics } from './with-analytics.js';
import 'drizzle-orm/pg-core';
import 'drizzle-orm';
import '../types/drizzle.js';
import 'drizzle-orm/node-postgres';
import '../subsystems/events/event-bus.protocol.js';
