type ChatResponse = { text: string; channel: string; conversationId?: string; }; declare class Authenticator { private debug?; private bot?; private token?; private channelTs; private client?; constructor(token: string, bot: string, debug?: boolean); oauth2(clientId: string, clientSecret: string): Promise; newChannel(name: string): Promise; private _joinChannel; private _deleteChannel; sendMessage(opt: { text: string; channel: string; conversationId?: string; onMessage?: (partialResponse: ChatResponse) => void; timeoutMs?: number; retry?: number; }): Promise; } export { Authenticator as default };