Initial commit: Brainy - Multi-Dimensional AI Database
Open source vector database with HNSW indexing, graph relationships, and metadata facets. Features CLI with professional augmentation registry integration for discovering extensions and capabilities.
This commit is contained in:
commit
f8c45f2d8d
448 changed files with 103294 additions and 0 deletions
31
dist/universal/events.d.ts
vendored
Normal file
31
dist/universal/events.d.ts
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/**
|
||||
* Universal Events implementation
|
||||
* Browser: Uses EventTarget API
|
||||
* Node.js: Uses built-in events module
|
||||
*/
|
||||
/**
|
||||
* Universal EventEmitter interface
|
||||
*/
|
||||
export interface UniversalEventEmitter {
|
||||
on(event: string, listener: (...args: any[]) => void): this;
|
||||
off(event: string, listener: (...args: any[]) => void): this;
|
||||
emit(event: string, ...args: any[]): boolean;
|
||||
once(event: string, listener: (...args: any[]) => void): this;
|
||||
removeAllListeners(event?: string): this;
|
||||
listenerCount(event: string): number;
|
||||
}
|
||||
/**
|
||||
* Universal EventEmitter class
|
||||
*/
|
||||
export declare class EventEmitter implements UniversalEventEmitter {
|
||||
private emitter;
|
||||
constructor();
|
||||
on(event: string, listener: (...args: any[]) => void): this;
|
||||
off(event: string, listener: (...args: any[]) => void): this;
|
||||
emit(event: string, ...args: any[]): boolean;
|
||||
once(event: string, listener: (...args: any[]) => void): this;
|
||||
removeAllListeners(event?: string): this;
|
||||
listenerCount(event: string): number;
|
||||
}
|
||||
export { EventEmitter as default };
|
||||
export declare const NodeEventEmitterClass: any;
|
||||
Loading…
Add table
Add a link
Reference in a new issue