// Type declarations for @soulcraft/brainy declare module '@soulcraft/brainy' { // Core types export class BrainyData { constructor(config?: any) init(): Promise add(text: string, metadata?: any): Promise get(id: string): Promise delete(id: string): Promise search(query: string, limit?: number, options?: any): Promise searchText(query: string, limit?: number, options?: any): Promise addVerb( sourceId: string, targetId: string, text?: string, options?: any ): Promise getVerbsBySource(sourceId: string): Promise getVerbsByTarget(targetId: string): Promise status(): Promise clear(): Promise backup(): Promise restore(data: any, options?: any): Promise importSparseData(data: any, options?: any): Promise generateRandomGraph(options?: any): Promise } export class FileSystemStorage { constructor(dataDir: string) } // Pipelines export const sequentialPipeline: any export const augmentationPipeline: any // Enums export enum NounType { Person = 'Person', Place = 'Place', Thing = 'Thing', Event = 'Event', Concept = 'Concept', Content = 'Content' } export enum VerbType { RelatedTo = 'RelatedTo', PartOf = 'PartOf', HasA = 'HasA', UsedFor = 'UsedFor', CapableOf = 'CapableOf', AtLocation = 'AtLocation', Causes = 'Causes', HasProperty = 'HasProperty', Owns = 'Owns', CreatedBy = 'CreatedBy' } export enum ExecutionMode { SEQUENTIAL = 'sequential', PARALLEL = 'parallel', THREADED = 'threaded' } export enum AugmentationType { SENSE = 'sense', MEMORY = 'memory', COGNITION = 'cognition', CONDUIT = 'conduit', ACTIVATION = 'activation', PERCEPTION = 'perception', DIALOG = 'dialog', WEBSOCKET = 'websocket' } }