import { ValueJSON } from 'slate' export interface ConnectionOptions { port: number connectOpts?: SocketIO.ServerOptions defaultValue?: ValueJSON saveTreshold?: number onAuthRequest?: ( query: Object, socket?: SocketIO.Socket ) => Promise | boolean onDocumentLoad?: ( pathname: string, query?: Object ) => ValueJSON | null | false | undefined onDocumentSave?: (pathname: string, json: ValueJSON) => Promise | void }