/**
* 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 AppSupport, type Audio, type AuthorizationSession, type Birthday, type BotTokenCheckResult, type BusinessAwayMessageSchedule, type ChatP, type CodeCheckResult, type ConnectedWebsite, type Country, type EmojiStatus, type FileSource, type GiftPrivacy, type ID, type InactiveChat, type InputBusinessRecipients, type InputEmojiStatus, type InputPrivacyRule, type NewChatPrivacy, type PasswordCheckResult, type PrivacyRule, type PrivacySettingKey, type ProfilePhotoList, type SavedNotificationSound, type Timezone, type Update, type User } from "../3_types.js";
import type { AddBotToAttachmentsMenuParams, AddMusicToProfileParams, AddSavedNotificationSoundParams, AllowUnpaidMessagesFromUserParams, CheckUsernameParams, DeleteAccountParams, DisallowUnpaidMessagesFromUserParams, GetProfileMusicParams, GetProfilePhotosParams, RemoveProfilePhotoParams, ResolveUsernameParams, SetBirthdayParams, SetBusinessAwayMessageParams, SetBusinessIntroParams, SetEmojiStatusParams, SetLocationParams, SetNameColorParams, SetPersonalChannelParams, SetProfileColorParams, SetWorkingHoursParams, SignUpParams, 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;
allowBotToSetCustomEmojiStatus(botId: ID): Promise;
disallowBotToSetCustomEmojiStatus(botId: ID): 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;
setBusinessAwayMessage(shortcutId: number, schedule: BusinessAwayMessageSchedule, recipients: InputBusinessRecipients, params?: SetBusinessAwayMessageParams): Promise;
removeBusinessAwayMessage(): Promise;
sendCode(phoneNumber: string, apiId: number, apiHash: string): Promise;
signUp(firstName: string, params?: SignUpParams): 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;
getAccountTtl(): Promise;
setAccountTtl(dayCount: number): Promise;
getConnectedWebsites(): Promise;
disconnectConnectedWebsite(id: string): Promise;
disconnectConnectedWebsites(): Promise;
getCountryCode(): Promise;
clearRecentEmojiStatuses(): Promise;
getRecentEmojiStatuses(): Promise;
getApplicationConfiguration(): Promise;
allowUnpaidMessagesFromUser(userId: ID, params?: AllowUnpaidMessagesFromUserParams): Promise;
disallowUnpaidMessagesFromUser(userId: ID, params?: DisallowUnpaidMessagesFromUserParams): Promise;
getPrivacySetting(key_: PrivacySettingKey): Promise;
setPrivacySetting(key_: PrivacySettingKey, rules_: InputPrivacyRule[]): Promise;
setReadDatePrivacy(value: boolean): Promise;
getReadDatePrivacy(): Promise;
setArchiveAndMuteNewChatsFromUnknownUsers(value: boolean): Promise;
getArchiveAndMuteNewChatsFromUnknownUsers(): Promise;
setNewChatPrivacy(value: NewChatPrivacy): Promise;
getNewChatPrivacy(): Promise;
setGiftPrivacy(value: GiftPrivacy): Promise;
getGiftPrivacy(): Promise;
sendCustomRequest(method: string, params_: string): Promise;
resetNotificationSettings(): Promise;
setDefaultMessageTtl(ttl: number): Promise;
setBusinessIntro(title: string, description: string, params?: SetBusinessIntroParams): Promise;
removeBusinessIntro(): Promise;
addSavedNotificationSound(sound: FileSource, params?: AddSavedNotificationSoundParams): Promise;
getSavedNotificationSounds(): Promise;
removeSavedNotificationSound(fileId_: string): Promise;
setBusinessGreetingMessage(shortcutId: number, recipients: InputBusinessRecipients, inactivityDayCount: number): Promise;
removeBusinessGreetingMessage(): Promise;
addMusicToProfile(fileId_: string, params?: AddMusicToProfileParams): Promise;
removeMusicFromProfile(fileId_: string): Promise;
getProfileMusic(userId: ID, params?: GetProfileMusicParams): Promise