import { InanoSQLDataModel , InanoSQLQuery } from "@nano-sql/core/lib/interfaces" ; import { InanoSQLUniversalDB , InanoSQLSession } from "../common" ; import { Express } from "express" ; export interface InanoSQLPresetQuery { name : string ; args ? : { [ colAndType ] : InanoSQLDataModel ; } | string ; call : ( args : any , onRow : ( row : any , i : number ) => void , complete : ( ) => void , error : ( err : any ) => void ) => any ; } export class nanoSQLServer { constructor ( public app ) { } public connect ( serverArgs ) { return new Promise ( ( res , rej ) => { } ) ; } public publish ( streamName , eventData ) { } public on ( event , callback ) { } public off ( event , callback ) { } public getDB ( name ) { } public newDB ( config ) { } public clearDB ( name ) { } public dropDB ( name ) { } public blacklistSession ( ) { } }