import type { Request } from 'express'; import { AuthenticateDto, ConnectDto, DataDto, GqlDto, QueryDto, RelateDto, SetDto, SigninDto, SignupDto, UpdateDto, UseDto } from './dto'; import { SurrealDbService } from './surrealdb.service'; export declare class SurrealDbController { private readonly surrealDbService; private readonly liveSubscriptions; private readonly transactions; constructor(surrealDbService: SurrealDbService); connect({ url }: ConnectDto): Promise; close(): Promise; health(): Promise<{ healthy: boolean; status?: undefined; error?: undefined; } | { healthy: boolean; status: import("surrealdb").ConnectionStatus; error: string; }>; status(): { status: import("surrealdb").ConnectionStatus; isConnected: boolean; }; isConnected(): boolean; isFeatureSupported(feature: string): boolean; version(): Promise; use({ namespace, database }: UseDto): Promise; subscribe(event: string): { subscribed: boolean; event: string; }; sessions(): Promise; newSession(): Promise<{ session: string; namespace: string; database: string; }>; forkSession(): Promise<{ session: string; namespace: string; database: string; }>; closeSession(): Promise; reset(): Promise; import(importDto: DataDto): Promise; export(optionsDto?: any): Promise; exportModel(name: string, version: string): Promise; beginTransaction(): Promise<{ id: any; }>; transactionQuery(id: string, { query, bindings }: QueryDto): Promise; commitTransaction(id: string): Promise; cancelTransaction(id: string): Promise; private getTransaction; signup(signupDto: SignupDto): Promise; signin(signinDto: SigninDto): Promise; invalidate(): Promise; authenticate({ token, refresh }: AuthenticateDto): Promise; auth(): Promise>; set({ variable, value }: SetDto): Promise; unset({ variable }: { variable: string; }): Promise; query({ query, bindings, mode }: QueryDto): Promise; gql({ query, variables }: GqlDto): Promise; run(name: string, runDto: unknown[]): Promise; api(req: Request): Promise; live(thing: string): Promise<{ id: any; }>; liveOf(id: string): Promise<{ id: any; }>; kill(id: string): Promise; select(thing: string, where?: string, limit?: string, start?: string, fields?: string, fetch?: string): Promise<{ [x: string]: unknown; } | { [x: string]: unknown; }[]>; create(thing: string, createDto: DataDto): Promise<{ [x: string]: unknown; } | { [x: string]: unknown; }[]>; insert(thing: string, insertDto: DataDto): Promise<{ [x: string]: unknown; }[]>; update(thing: string, updateDto: UpdateDto): Promise<{ [x: string]: unknown; } | { [x: string]: unknown; }[]>; upsert(thing: string, upsertDto: UpdateDto): Promise<{ [x: string]: unknown; } | { [x: string]: unknown; }[]>; delete(thing: string): Promise<{ [x: string]: unknown; } | { [x: string]: unknown; }[]>; relate(thing: string, relateDto: RelateDto): Promise<{ [x: string]: unknown; } | { [x: string]: unknown; }[]>; }