import { HttpClient } from "./ICQHttpClient"; import { Self } from "../interfaces/Entities/Self"; import { Chat } from "../interfaces/Entities/Chat"; import { ICQBot, ICQOptions, MembersItem } from "../interfaces/ICQBot"; import { ResponseEvent } from "../interfaces/Events/Event"; import { Dispatcher } from "../interfaces/Dispatcher"; import { ResponseMessage } from "../interfaces/Response/ResponseMessage"; import { ResponseUploadFile, ResponseSendFile } from "../interfaces/Response/ResponseSendFile"; import { ResponseUploadVoice, ResponseSendVoice } from "../interfaces/Response/ResponseSendVoice"; import { ResponseAdmin } from "../interfaces/Response/ResponseAdmin"; import { ResponseFileInfo } from "../interfaces/Response/ResponseFileInfo"; import { ResponseMembers } from "../interfaces/Response/ResponseMembers"; import { ResponseUsers } from "../interfaces/Response/ResponseUsers"; import { ICQButton } from "./ICQButton"; import { Format } from "../interfaces/Format"; export declare class Bot implements ICQBot { private token; private uin; private running; private dispatcher; private lastEventId; private timeoutS; private pollTimeS; private version; private name; /** Номер таймера для возможной отмены. В версии не используется */ private pollingThread; private apiBaseUrl; private http; constructor(token: string, options?: ICQOptions); getDispatcher(): Dispatcher; getUNI(): number; getUserAgent(): string; setHttpSession(http: HttpClient): void; startPolling(): ICQBot; private polling; stop(): ICQBot; eventsGet(pollTimeS: number, lastEventId: number): Promise; selfGet(): Promise; sendText(chatId: string, text: String, replyMsgId?: String, forwardChatId?: String, forwardMsgId?: String, inlineKeyboardMarkup?: ICQButton | ICQButton[] | ICQButton[][], format?: Format): Promise; private getICQButtonList; sendFile(chatId: string, fileId: string, file?: string, caption?: String, replyMsgId?: String, forwardChatId?: String, forwardMsgId?: String, inlineKeyboardMarkup?: ICQButton | ICQButton[] | ICQButton[][], format?: Format): Promise; sendVoice(chatId: string, fileId: string, file: string, replyMsgId: String, forwardChatId: String, forwardMsgId: String, inlineKeyboardMarkup?: ICQButton | ICQButton[] | ICQButton[][]): Promise; editText(chatId: string, msgId: string, text: String, inlineKeyboardMarkup?: ICQButton | ICQButton[] | ICQButton[][], format?: Format): Promise; deleteMessages(chatId: string, msgId: string | string[]): Promise; answerCallbackQuery(queryId: string, text: string, showAlert?: boolean, url?: string): Promise; sendActions(chatId: string, actions: 'looking' | 'typing'): Promise; getChatInfo(chatId: string): Promise; getChatAdmins(chatId: string): Promise; getFileInfo(fileId: string): Promise; pinMessage(chatId: string, msgId: string): Promise; unpinMessage(chatId: string, msgId: string): Promise; setTitle(chatId: string, title: string): Promise; setAbout(chatId: string, text: string): Promise; setRules(chatId: string, rules: string): Promise; setAvatar(chatId: string, file: string): Promise; getMembers(chatId: string, cursor?: string): Promise; deleteMembers(chatId: string, members: MembersItem[]): Promise; getBlockedUsers(chatId: string): Promise; getPendingUsers(chatId: string): Promise; blockUser(chatId: string, userId: string, delLastMessages?: boolean): Promise; unblockUser(chatId: string, userId: string): Promise; resolvePending(chatId: string, approve: boolean, userId?: string, everyone?: boolean): Promise; }