export declare class MessagesService { private mongoClient; private collection; ready: Promise; constructor(mongoURI?: string); private _setup; private _setupInMemory; /** * Create a message. Called when a client emits 'messages::create'. * The returned object is what channels.ts routes to the right subscribers. */ create(data: any, params?: any): Promise; /** * Return message history for the calling client. * Called when a client emits 'messages::find'. */ find(params?: any): Promise; close(): Promise; }