import { C8Collection, BaseCollection, CollectionType, DocumentHandle, EdgeCollection } from "./collection"; import { Connection } from "./connection"; export declare class GraphVertexCollection extends BaseCollection { type: CollectionType; graph: Graph; constructor(connection: Connection, name: string, graph: Graph); document(documentHandle: DocumentHandle, graceful?: boolean, opts?: Record): Promise; vertex(documentHandle: DocumentHandle, graceful?: boolean): Promise; save(data: any, opts?: { waitForSync?: boolean; returnNew?: boolean; }): Promise; replace(documentHandle: DocumentHandle, newValue: any, opts?: Record): Promise; update(documentHandle: DocumentHandle, newValue: any, opts?: Record): Promise; remove(documentHandle: DocumentHandle, opts?: Record): Promise; } export declare class GraphEdgeCollection extends EdgeCollection { type: CollectionType; graph: Graph; constructor(connection: Connection, name: string, graph: Graph); document(documentHandle: DocumentHandle, graceful?: boolean, opts?: Record): Promise; save(data: any, fromId?: DocumentHandle | any, toId?: DocumentHandle, opts?: { waitForSync?: boolean; returnNew?: boolean; }): Promise; replace(documentHandle: DocumentHandle, newValue: any, opts?: Record): Promise; update(documentHandle: DocumentHandle, newValue: any, opts?: Record): Promise; remove(documentHandle: DocumentHandle, opts?: Record): Promise; } export declare class Graph { name: string; private _connection; constructor(connection: Connection, name: string); get(): Promise; exists(): Promise; create(properties?: any): Promise; drop(dropCollections?: boolean): Promise; vertexCollection(collectionName: string): GraphVertexCollection; listVertexCollections(): Promise; vertexCollections(): Promise; addVertexCollection(collection: string | C8Collection): Promise; removeVertexCollection(collection: string | C8Collection, dropCollection?: boolean): Promise; edgeCollection(collectionName: string): GraphEdgeCollection; listEdgeCollections(): Promise; edgeCollections(): Promise; addEdgeDefinition(definition: any): Promise; replaceEdgeDefinition(definitionName: string, definition: any): Promise; removeEdgeDefinition(definitionName: string, dropCollection?: boolean): Promise; addVertexToVertexCollection(collectionName: string, properties?: any, returnNew?: boolean): Promise; addEdgeToEdgeCollection(edgeCollectionName: string, properties?: any, returnNew?: boolean): Promise; } //# sourceMappingURL=graph.d.ts.map