import { IItem } from 'debe' ; import { SyncEngine } from '../sync' ; export interface IListenReturn { wait : Promise < void | any > ; } export interface ISyncType { initialUp ( collection , since , count , sync ) : Promise < [ string | undefined , string | undefined ] > ; listen ( sync ) : IListenReturn ; up ( collection , items , options , sync ) : Promise < any > ; initialDown ( collection , since , count , sync ) : Promise < ( ) => Promise < [ string | undefined , string | undefined ] > > ; }