import { VertexModel, VertexModelConstructor } from './Vertex'; import { Collection } from './Collection'; import { Constructor } from 'agentframework'; import { EdgeCollection } from './EdgeCollection'; import { GraphClient } from './GraphClient'; import { MongoDatabase } from '../mongodb/MongoModel'; import { Identity } from '../utils/Identity'; import { WebApplicationSettings } from '../web/WebApplicationSettings'; import { WebApplication } from '../web/WebApplication'; import { WebContext } from '../web/WebContext'; import { TypeFinalizer, TypeInitializer } from 'agentstack'; export declare class Graph extends MongoDatabase { private _identity; Edges: EdgeCollection; protected singletons: Map; constructor(client: GraphClient, _identity: Identity, graph?: string); static [TypeInitializer](app: WebApplication, ctx: WebContext): Promise; static [TypeFinalizer](app: WebApplication, ctx: WebContext, graph: Graph): void; identity(identity?: Identity): Identity; collectionOf(modelOrModelType: T | VertexModelConstructor): Collection; collection(type: Constructor): T; protected create(type: Constructor): any; }