import { DBUpdate } from './typings'; import TectonicDB, { SocketQuery, TectonicResponse } from './tectonic'; export default class TectonicPool { threads: number; port: number; address: string; sockets: TectonicDB[]; count: number; constructor(threads?: number, port?: number, address?: string); newSocket(): TectonicDB; onDisconnect(queue: SocketQuery[]): void; bestSocket(): TectonicDB; info(): Promise; ping(): Promise; help(): Promise; add(update: DBUpdate): Promise; insert(update: DBUpdate, db: string): Promise; getall(): Promise; get(n: number): Promise; clear(): Promise; clearall(): Promise; flush(): Promise; flushall(): Promise; create(dbname: string): Promise; use(dbname: string): Promise; exists(dbname: string): Promise; exit(): Promise; }