/** * MTKruto - Cross-runtime JavaScript library for building Telegram clients * Copyright (C) 2023-2026 Roj * * This file is part of MTKruto. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ import { Api } from "../2_tl.js"; import { type Birthday, type BotTokenCheckResult, type CodeCheckResult, type FileSource, type ID, type InputEmojiStatus, type PasswordCheckResult, type Update } from "../3_types.js"; import type { AddBotToAttachmentsMenuParams, CheckUsernameParams, DeleteAccountParams, GetProfilePhotosParams, RemoveProfilePhotoParams, ResolveUsernameParams, SetBirthdayParams, SetEmojiStatusParams, SetLocationParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetWorkingHoursParams, UpdateProfileParams, UpdateProfilePhotoParams, UpdateProfileVideoParams } from "./0_params.js"; import type { UpdateProcessor } from "./0_update_processor.js"; import type { C as C_ } from "./1_types.js"; import type { FileManager } from "./2_file_manager.js"; type C = C_ & { fileManager: FileManager; }; declare const accountManagerUpdates: readonly ["updateUserEmojiStatus"]; type AccountManagerUpdate = Api.Types[(typeof accountManagerUpdates)[number]]; export declare class AccountManager implements UpdateProcessor { #private; constructor(c: C); canHandleUpdate(update: Api.Update): update is Api.updateUserEmojiStatus; showUsername(id: ID, username: string): Promise; hideUsername(id: ID, username: string): Promise; checkUsername(username: string, params?: CheckUsernameParams): Promise>; setUsername(username: string): Promise; removeUsername(): Promise; reorderUsernames(id: ID, order: string[]): Promise>; hideUsernames(id: ID): Promise>; getInactiveChats(): Promise; setIsOnline(isOnline: boolean): Promise; setEmojiStatus(emojiStatus: InputEmojiStatus, params?: SetEmojiStatusParams): Promise; removeEmojiStatus(): Promise; setChannelEmojiStatus(chatId: ID, emojiStatus: InputEmojiStatus, params?: SetEmojiStatusParams): Promise; removeChannelEmojiStatus(chatId: ID): Promise; setUserEmojiStatus(userId: ID, emojiStatus: InputEmojiStatus, params?: SetEmojiStatusParams): Promise; removeUserEmojiStatus(userId: ID): Promise; setBotCanSetEmojiStatus(botId: ID, canSetEmojiStatus: boolean): Promise; updateProfile(params?: UpdateProfileParams): Promise; setBirthday(params?: SetBirthdayParams): Promise; setPersonalChannel(params?: SetPersonalChannelParams): Promise; setNameColor(color: number, params?: SetNameColorParams): Promise; setProfileColor(color: number, params?: SetProfileColorParams): Promise; setLocation(params?: SetLocationParams): Promise; setWorkingHours(params?: SetWorkingHoursParams): Promise; sendCode(phoneNumber: string, apiId: number, apiHash: string): Promise; checkCode(code: string): Promise; getPasswordHint(): Promise; checkPassword(password: string): Promise; checkBotToken(botToken: string, apiId: number, apiHash: string): Promise; enableSponsoredMessages(): Promise; disableSponsoredMessages(): Promise; pauseBusinessBotConnection(chatId: ID): Promise; resumeBusinessBotConnection(chatId: ID): Promise; handleUpdate(update: Api.updateUserEmojiStatus): Update; resolveUsername(username: string, params?: ResolveUsernameParams): Promise; resolvePhoneNumber(phoneNumber: string): Promise; setCloseFriends(userIds: ID[]): Promise; suggestBirthday(userId: ID, birthday_: Birthday): Promise; addBotToAttachmentsMenu(botId: ID, params?: AddBotToAttachmentsMenuParams): Promise; removeBotFromAttachmentsMenu(botId: ID): Promise; getAppSupport(): Promise; getAppSupportName(): Promise; getOwnedBots(): Promise; getTimezones(): Promise; getCountries(languageCode: string): Promise; updateProfilePhoto(photo: FileSource, params?: UpdateProfilePhotoParams): Promise; updateProfileVideo(photo: FileSource, params?: UpdateProfileVideoParams): Promise; removeProfilePhoto(params?: RemoveProfilePhotoParams): Promise; getProfilePhotos(userId: ID, params?: GetProfilePhotosParams): Promise; deleteAccount(reason: string, params?: DeleteAccountParams): Promise; getAuthorizationSessions(): Promise; removeAuthorizationSession(id: string): Promise; removeAuthorizationSessions(): Promise; } export {}; //# sourceMappingURL=3_account_manager.d.ts.map