import IBackend from '../contracts/IBackend'; import ISessionBackend from '../contracts/ISessionBackend'; import IClientContext from '../contracts/IClientContext'; import { OpenSessionRequest } from '../contracts/IDBSQLClient'; interface ThriftBackendOptions { context: IClientContext; onConnectionEvent: (event: 'error' | 'reconnecting' | 'close' | 'timeout', payload?: unknown) => void; } export default class ThriftBackend implements IBackend { private readonly context; private readonly onConnectionEvent; constructor({ context, onConnectionEvent }: ThriftBackendOptions); connect(): Promise; openSession(request: OpenSessionRequest): Promise; close(): Promise; } export {};