import { App } from './../app' ; export interface StatsDriver { param { App } app return { Promise < number > } markNewConnection ( app ) : Promise < number > ; param { App } app param { string | null } reason return { Promise < number > } markDisconnection ( app , reason ? ) : Promise < number > ; param { App } app return { Promise < number > } markApiMessage ( app ) : Promise < number > ; param { App } app return { Promise < number > } markWsMessage ( app ) : Promise < number > ; param { App | string } app return { Promise < any > } getStats ( app ) : Promise < any > ; param { App | string } app param { number | null } time return { Promise < any > } takeSnapshot ( app , time ? ) : Promise < any > ; param { App | string } app param { number | null } start param { number | null } end return { Promise < any > } getSnapshots ( app , start ? , end ? ) : Promise < any > ; param { App | string } app param { number | null } time return { Promise < boolean > } deleteStalePoints ( app , time ? ) : Promise < boolean > ; param { App | string } app return { Promise < boolean > } registerApp ( app ) : Promise < boolean > ; return { Promise < string [ ] > } getRegisteredApps ( ) : Promise < string [ ] > ; }