import { C8QLLiteral, C8QLQuery } from "./c8ql-query"; import { C8Collection, DocumentCollection, EdgeCollection } from "./collection"; import { Config, Connection } from "./connection"; import { ArrayCursor } from "./cursor"; import { Graph } from "./graph"; import { Tenant } from "./tenant"; import { Stream } from "./stream"; import { Route } from "./route"; import { Event } from "./event"; import User from "./user"; import { Streamapps } from "./streamapps"; export type TenantListObj = { tenant: string; active: boolean; extra: any; }; export type TenantList = { error: boolean; code: number; result: TenantListObj[]; }; export type EdgeLocation = { _id: string; _key: string; _rev: string; host: string; local: boolean; name: string; port: number; spot_region: boolean; status: 0 | 1; tags: { city: string; countrycode: string; countryname: string; latitude: string; longitude: string; role: string; url: string; }; }; export type ServiceOptions = { [key: string]: any; configuration?: { [key: string]: any; }; dependencies?: { [key: string]: any; }; }; export interface CreateFabricOptions { dcList: string; spotDc?: string; metadata?: object; } export declare class Fabric { protected _connection: Connection; constructor(config?: Config); get name(): string | null; route(path?: string, headers?: Object): Route; close(): void; useFabric(fabricName: string): this; useBearerAuth(token: string): this; useBasicAuth(username: string, password: string): this; setResultListener(callback: ((res: any) => void) | undefined): void; get(): Promise; exists(): Promise; createFabric(fabricName: string, users: string[] | undefined, options: CreateFabricOptions): Promise; listFabrics(): Promise; listUserFabrics(): Promise; dropFabric(fabricName: string): Promise; getGeoFabricMetaData(): Promise; setMetaDataForGeoFabric(metadata: any): Promise; updateMetaDataForGeoFabric(metadata: any): Promise; login(email: string, password: string): Promise; updateFabricSpotRegion(tenantName: string, fabricName: string, datacenter?: string): Promise; getEvents(): Promise; deleteEvents(eventIds: string[]): Promise; event(entityName: string, eventId?: number): Event; collection(collectionName: string): DocumentCollection; edgeCollection(collectionName: string): EdgeCollection; listCollections(excludeSystem?: boolean): Promise; collections(excludeSystem?: boolean): Promise; truncate(excludeSystem?: boolean): Promise; graph(graphName: string): Graph; listGraphs(): Promise; graphs(): Promise; query(query: string | C8QLQuery | C8QLLiteral): Promise; query(query: C8QLQuery, opts?: any): Promise; query(query: string | C8QLLiteral, bindVars?: any, opts?: any): Promise; nextBatchFromCursor(cursorIdentifier: number): Promise; deleteCursor(cursorIdentifier: number): Promise; validateQuery(query: string): Promise; explainQuery(explainQueryObj: C8QLQuery): Promise; getCurrentQueries(): Promise; clearSlowQueries(): Promise; getSlowQueries(): Promise; terminateRunningQuery(queryId: string): Promise; listFunctions(): Promise; createFunction(name: string, code: string, isDeterministic?: boolean): Promise; dropFunction(name: string, group?: boolean): Promise; version(details?: boolean): Promise; useTenant(tenantName: string): this; tenant(email: string, tenantName?: string): Tenant; listTenants(): Promise; stream(streamName: string, local?: boolean, isCollectionStream?: boolean): Stream; getStreams(global?: boolean | undefined): Promise; getAllStreams(): Promise; listPersistentStreams(local?: boolean): Promise; clearBacklog(): Promise; clearSubscriptionBacklog(subscription: string): Promise; unsubscribe(subscription: string): Promise; getAllEdgeLocations(): Promise; getTenantEdgeLocations(): Promise; getLocalEdgeLocation(): Promise; changeEdgeLocationSpotStatus(dcName: string, isSpot: boolean): Promise; user(user: string, email?: string): User; getAllUsers(): Promise; listSavedQueries(): Promise; saveQuery(name: string, parameter: any, value: string, type: string): Promise; executeSavedQuery(queryName: string, opts?: any): Promise; updateSavedQuery(queryName: string, parameter: any, value: string, type: string): Promise; deleteSavedQuery(queryName: string): Promise; getNextBatchFromCursor(id: string): Promise; streamApp(appName: string): Streamapps; createStreamApp(regions: Array, appDefinition: string): Promise; getAllStreamApps(): Promise; validateStreamappDefinition(appDefinition: string): Promise; getSampleStreamApps(): Promise; } //# sourceMappingURL=fabric.d.ts.map