export default class ConnectingMessageBuffer { private buffer; private client; private drainCallback; /** * Takes the client and drainCallback and creates an efficient buffer for buffering recieved messages. * @param {Client} client The current instance of the user's client. * @param {bool} drainCallback A boolean to decide wherer to drain the buffer. * @constructor * @returns {ConnectingMessageBuffer} Creates a new ConnectingMessageBuffer. */ constructor(client: any, drainCallback: Function); /** * Attempts to add a passed in message to the buffer. * @param {Object} message The message to be pushed into the buffer. * @returns {boolean} Returns false if the client is currently not connecting. * @function * @public */ tryBuffer(message: any): boolean; /** * Drains the current buffer and removes all messages. * @function * @public * @returns {void} Method does not return any value. */ drain(): void; } //# sourceMappingURL=ConnectingMessageBuffer.d.ts.map