import { EventEmitter } from 'events'; import { LiwanagApi, LiwanagOptions, Message, UserInfo, ThreadInfo, SendMessageOptions, Cookie, CookieStatus, CookieHealth, AutoRefreshConfig, FingerprintConfig, RequestObfuscatorConfig, PatternDiffuserConfig, RateLimiterConfig, AppState, MessageCallback, TimelinePostOptions, TimelinePost, FriendRequest, Notification, NotificationCallback, WebhookConfig, VoiceMessageOptions, VoiceMessage, FileAttachmentOptions, FileAttachment, StoryOptions, Story, ReelsOptions, Reel, MarketplaceListingOptions, MarketplaceListing, MarketplaceSearchOptions, WatchTogetherSession, WatchTogetherOptions, GameSession, GameInvite, AvailableGame, AnalyticsData, Plugin, LiveStreamOptions, LiveStream, LiveStreamCallback, ChatbotConfig, ChatbotIntent, ChatbotResponse, ChatbotContext, AccountInfo, AccountSwitchOptions, AccountManagerConfig, AccountStats, ResponseTemplate, TemplateResponse, ScheduledMessage, SchedulerConfig, SpamDetectionConfig, SpamCheckResult, SpamReport, GroupAnalytics, GroupContributor, GroupSentiment, MessagingBridgeConfig, PlatformConfig, SupportedPlatform, BridgedMessage, BridgeStats, CallSession, CallOptions, CallCallback, ScreenShareSession, ScreenShareOptions, ModerationConfig, ModerationRule, ModerationResult, ModerationStats, ModerationQueue, EncryptionConfig, EncryptionKeyPair, EncryptedThread, EncryptionStatus, BotMarketplaceConfig, BotListing, BotSearchOptions, InstalledBot, BotReview, WebhookTransformConfig, WebhookTransformation, TransformationResult } from '../types'; import { Logger } from '../utils/logger'; import { CookieManager } from '../utils/cookies'; import { HttpClient } from '../utils/http'; import { FingerprintManager, RequestObfuscator, PatternDiffuser, SmartRateLimiter } from '../utils/antiDetection'; export declare class Api extends EventEmitter implements LiwanagApi { private userId; private options; private logger; private cookieManager; private httpClient; private _fingerprintManager; private _requestObfuscator; private _patternDiffuser; private _rateLimiter; private mqttClient; private isListening; private messageCallback; private appState; private webhooks; private notificationCallbacks; private notificationPollingInterval; private plugins; private marketplaceListings; private watchTogetherSessions; private gameSessions; private stories; private reels; private liveStreams; private liveStreamCallbacks; private chatbotConfig; private chatbotContexts; private accounts; private activeAccountID; private accountManagerConfig; private templates; private scheduledMessages; private schedulerInterval; private schedulerConfig; private spamConfig; private spamReports; private whitelist; private blacklist; private bridgeConfig; private bridgedMessages; private bridgeStats; private callSessions; private callCallbacks; private moderationConfig; private moderationQueue; private moderationRules; private encryptionConfig; private encryptedThreads; private botMarketplaceConfig; private installedBots; private botListings; private webhookTransformConfig; private webhookTransformations; private analyticsStartTime; private analyticsData; constructor(userId: string, appState: AppState, options: LiwanagOptions, logger: Logger, cookieManager: CookieManager, httpClient: HttpClient, fingerprintMgr: FingerprintManager, requestObfusc: RequestObfuscator, patternDiff: PatternDiffuser, rateLimiter: SmartRateLimiter); getUserID(): string; magpadalaNgMensahe(message: string | SendMessageOptions, threadID: string, callback?: (err: Error | null, messageInfo: any) => void): Promise; sendMessage(message: string | SendMessageOptions, threadID: string, callback?: (err: Error | null, messageInfo: any) => void): Promise; private sendMessageInternal; makinigSaMensahe(callback: MessageCallback): void; listenMqtt(callback: MessageCallback): void; private startMqttConnection; simulateMessage(message: Message): void; isConnected(): boolean; stopListening(): void; itigil(): void; sendTypingIndicator(threadID: string, isTyping?: boolean): void; setPresence(isOnline: boolean): void; kuninAngUserInfo(userIDs: string | string[], callback?: (err: Error | null, info: Record) => void): Promise>; getUserInfo(userIDs: string | string[], callback?: (err: Error | null, info: Record) => void): Promise>; kuninAngThreadInfo(threadID: string, callback?: (err: Error | null, info: ThreadInfo) => void): Promise; getThreadInfo(threadID: string, callback?: (err: Error | null, info: ThreadInfo) => void): Promise; kuninAngThreadList(limit: number, timestamp: number | null, tags: string[], callback?: (err: Error | null, threads: ThreadInfo[]) => void): Promise; getThreadList(limit: number, timestamp: number | null, tags: string[], callback?: (err: Error | null, threads: ThreadInfo[]) => void): Promise; gumawaNgGroup(participantIDs: string[], name: string, callback?: (err: Error | null, threadID: string) => void): Promise; createGroup(participantIDs: string[], name: string, callback?: (err: Error | null, threadID: string) => void): Promise; magdagdagNgMember(threadID: string, userIDs: string | string[], callback?: (err: Error | null) => void): Promise; addUserToGroup(userIDs: string | string[], threadID: string, callback?: (err: Error | null) => void): Promise; magtanggalNgMember(threadID: string, userID: string, callback?: (err: Error | null) => void): Promise; removeUserFromGroup(userID: string, threadID: string, callback?: (err: Error | null) => void): Promise; palitanAngGroupName(threadID: string, newName: string, callback?: (err: Error | null) => void): Promise; setTitle(newTitle: string, threadID: string, callback?: (err: Error | null) => void): Promise; markAsRead(threadID: string, callback?: (err: Error | null) => void): Promise; markAsReadAll(callback?: (err: Error | null) => void): Promise; setMessageReaction(reaction: string, messageID: string, callback?: (err: Error | null) => void): Promise; unsendMessage(messageID: string, callback?: (err: Error | null) => void): Promise; sendPhoto(photoPath: string | string[], threadID: string, caption?: string, callback?: (err: Error | null, messageInfo: any) => void): Promise; magpadalaNgLarawan(photoPath: string | string[], threadID: string, caption?: string, callback?: (err: Error | null, messageInfo: any) => void): Promise; sendVideo(videoPath: string, threadID: string, caption?: string, callback?: (err: Error | null, messageInfo: any) => void): Promise; magpadalaNgVideo(videoPath: string, threadID: string, caption?: string, callback?: (err: Error | null, messageInfo: any) => void): Promise; sendSticker(stickerID: string, threadID: string, callback?: (err: Error | null, messageInfo: any) => void): Promise; magpadalaNgSticker(stickerID: string, threadID: string, callback?: (err: Error | null, messageInfo: any) => void): Promise; getStickerURL(stickerID: string, callback?: (err: Error | null, url: string) => void): Promise; postToTimeline(message: string, options?: TimelinePostOptions, callback?: (err: Error | null, postInfo: TimelinePost) => void): Promise; magpostsaTimeline(message: string, options?: TimelinePostOptions, callback?: (err: Error | null, postInfo: TimelinePost) => void): Promise; deletePost(postID: string, callback?: (err: Error | null) => void): Promise; editPost(postID: string, newMessage: string, callback?: (err: Error | null) => void): Promise; sendFriendRequest(userID: string, callback?: (err: Error | null) => void): Promise; magpadalaNgFriendRequest(userID: string, callback?: (err: Error | null) => void): Promise; acceptFriendRequest(userID: string, callback?: (err: Error | null) => void): Promise; tanggapinAngFriendRequest(userID: string, callback?: (err: Error | null) => void): Promise; declineFriendRequest(userID: string, callback?: (err: Error | null) => void): Promise; cancelFriendRequest(userID: string, callback?: (err: Error | null) => void): Promise; unfriend(userID: string, callback?: (err: Error | null) => void): Promise; getFriendRequests(callback?: (err: Error | null, requests: FriendRequest[]) => void): Promise; kuninAngFriendRequests(callback?: (err: Error | null, requests: FriendRequest[]) => void): Promise; getFriendsList(callback?: (err: Error | null, friends: UserInfo[]) => void): Promise; getNotifications(limit?: number, callback?: (err: Error | null, notifications: Notification[]) => void): Promise; kuninAngNotifications(limit?: number, callback?: (err: Error | null, notifications: Notification[]) => void): Promise; markNotificationAsRead(notificationID: string, callback?: (err: Error | null) => void): Promise; markAllNotificationsAsRead(callback?: (err: Error | null) => void): Promise; onNotification(callback: NotificationCallback): void; private startNotificationPolling; private stopNotificationPolling; registerWebhook(config: WebhookConfig): void; unregisterWebhook(webhookID: string): void; getWebhooks(): WebhookConfig[]; private triggerWebhook; private sendWebhookPayload; autoRefreshCookies(config: Partial): void; refreshCookies(): Promise; getCookieStatus(): CookieStatus; checkCookieHealth(): Promise; exportCookies(): Cookie[]; saveCookies(path: string): Promise; loadCookies(path: string): Promise; rotateCookies(options: { clearCache?: boolean; renewSession?: boolean; }): Promise; fingerprintManager(config: Partial): void; requestObfuscator(config: Partial): void; patternDiffuser(config: Partial): void; smartRateLimiter(config: Partial): void; getAppState(): AppState; setOptions(options: Partial): void; sendVoice(audioPath: string, threadID: string, options?: VoiceMessageOptions, callback?: (err: Error | null, messageInfo: VoiceMessage) => void): Promise; magpadalaNgBoses(audioPath: string, threadID: string, options?: VoiceMessageOptions, callback?: (err: Error | null, messageInfo: VoiceMessage) => void): Promise; sendFile(filePath: string, threadID: string, options?: FileAttachmentOptions, callback?: (err: Error | null, attachment: FileAttachment) => void): Promise; magpadalaNgFile(filePath: string, threadID: string, options?: FileAttachmentOptions, callback?: (err: Error | null, attachment: FileAttachment) => void): Promise; postStory(mediaPath: string, options?: StoryOptions, callback?: (err: Error | null, story: Story) => void): Promise; magpostNgStory(mediaPath: string, options?: StoryOptions, callback?: (err: Error | null, story: Story) => void): Promise; getStories(userID?: string, callback?: (err: Error | null, stories: Story[]) => void): Promise; kuninAngStories(userID?: string, callback?: (err: Error | null, stories: Story[]) => void): Promise; deleteStory(storyID: string, callback?: (err: Error | null) => void): Promise; postReel(videoPath: string, options?: ReelsOptions, callback?: (err: Error | null, reel: Reel) => void): Promise; magpostNgReel(videoPath: string, options?: ReelsOptions, callback?: (err: Error | null, reel: Reel) => void): Promise; getReels(userID?: string, callback?: (err: Error | null, reels: Reel[]) => void): Promise; kuninAngReels(userID?: string, callback?: (err: Error | null, reels: Reel[]) => void): Promise; createListing(options: MarketplaceListingOptions, callback?: (err: Error | null, listing: MarketplaceListing) => void): Promise; gumawaNgListing(options: MarketplaceListingOptions, callback?: (err: Error | null, listing: MarketplaceListing) => void): Promise; updateListing(listingID: string, updates: Partial, callback?: (err: Error | null, listing: MarketplaceListing) => void): Promise; deleteListing(listingID: string, callback?: (err: Error | null) => void): Promise; searchMarketplace(options: MarketplaceSearchOptions, callback?: (err: Error | null, listings: MarketplaceListing[]) => void): Promise; hanapiNgListings(options: MarketplaceSearchOptions, callback?: (err: Error | null, listings: MarketplaceListing[]) => void): Promise; getMyListings(callback?: (err: Error | null, listings: MarketplaceListing[]) => void): Promise; kuninAngMgaListingsKo(callback?: (err: Error | null, listings: MarketplaceListing[]) => void): Promise; markAsSold(listingID: string, callback?: (err: Error | null) => void): Promise; startWatchTogether(threadID: string, options: WatchTogetherOptions, callback?: (err: Error | null, session: WatchTogetherSession) => void): Promise; magsimulaNgWatchTogether(threadID: string, options: WatchTogetherOptions, callback?: (err: Error | null, session: WatchTogetherSession) => void): Promise; joinWatchTogether(sessionID: string, callback?: (err: Error | null, session: WatchTogetherSession) => void): Promise; leaveWatchTogether(sessionID: string, callback?: (err: Error | null) => void): Promise; controlWatchTogether(sessionID: string, action: 'play' | 'pause' | 'seek', value?: number, callback?: (err: Error | null) => void): Promise; private availableGames; startGame(threadID: string, gameID: string, callback?: (err: Error | null, session: GameSession) => void): Promise; magsimulaNgLaro(threadID: string, gameID: string, callback?: (err: Error | null, session: GameSession) => void): Promise; joinGame(sessionID: string, callback?: (err: Error | null, session: GameSession) => void): Promise; leaveGame(sessionID: string, callback?: (err: Error | null) => void): Promise; getAvailableGames(callback?: (err: Error | null, games: AvailableGame[]) => void): Promise; kuninAngMgaLaro(callback?: (err: Error | null, games: AvailableGame[]) => void): Promise; sendGameInvite(threadID: string, gameID: string, callback?: (err: Error | null, invite: GameInvite) => void): Promise; getAnalytics(period?: 'day' | 'week' | 'month' | 'all', callback?: (err: Error | null, data: AnalyticsData) => void): Promise; kuninAngAnalytics(period?: 'day' | 'week' | 'month' | 'all', callback?: (err: Error | null, data: AnalyticsData) => void): Promise; exportAnalytics(format: 'json' | 'csv', exportPath: string, callback?: (err: Error | null) => void): Promise; resetAnalytics(callback?: (err: Error | null) => void): Promise; registerPlugin(plugin: Plugin): void; unregisterPlugin(pluginId: string): void; enablePlugin(pluginId: string): void; disablePlugin(pluginId: string): void; getPlugins(): Plugin[]; getPlugin(pluginId: string): Plugin | undefined; private executePluginHooks; startLiveStream(options: LiveStreamOptions, callback?: (err: Error | null, stream: LiveStream) => void): Promise; magsimulaNgLiveStream(options: LiveStreamOptions, callback?: (err: Error | null, stream: LiveStream) => void): Promise; endLiveStream(streamID: string, callback?: (err: Error | null) => void): Promise; tapusinAngLiveStream(streamID: string, callback?: (err: Error | null) => void): Promise; getLiveStreams(callback?: (err: Error | null, streams: LiveStream[]) => void): Promise; kuninAngMgaLiveStream(callback?: (err: Error | null, streams: LiveStream[]) => void): Promise; onLiveStreamEvent(streamID: string, callback: LiveStreamCallback): void; configureChatbot(config: ChatbotConfig): void; iConfigAngChatbot(config: ChatbotConfig): void; enableChatbot(): void; disableChatbot(): void; addChatbotIntent(intent: ChatbotIntent): void; removeChatbotIntent(intentName: string): void; processChatbotMessage(message: string, userID: string): Promise; getChatbotContext(userID: string): ChatbotContext | undefined; clearChatbotContext(userID: string): void; addAccount(appState: AppState, name?: string): Promise; magdagdagNgAccount(appState: AppState, name?: string): Promise; removeAccount(accountID: string): void; switchAccount(accountID: string, options?: AccountSwitchOptions): Promise; lumipatNgAccount(accountID: string, options?: AccountSwitchOptions): Promise; getAccounts(): AccountInfo[]; kuninAngMgaAccount(): AccountInfo[]; getActiveAccount(): AccountInfo | undefined; getAccountStats(accountID?: string): AccountStats; configureAccountManager(config: AccountManagerConfig): void; addTemplate(template: ResponseTemplate): void; magdagdagNgTemplate(template: ResponseTemplate): void; removeTemplate(templateID: string): void; updateTemplate(templateID: string, updates: Partial): void; getTemplates(): ResponseTemplate[]; kuninAngMgaTemplate(): ResponseTemplate[]; enableTemplate(templateID: string): void; disableTemplate(templateID: string): void; testTemplate(templateID: string, testMessage: string): TemplateResponse | null; scheduleMessage(threadID: string, message: string | SendMessageOptions, scheduledTime: Date, options?: Partial): Promise; magScheduleNgMensahe(threadID: string, message: string | SendMessageOptions, scheduledTime: Date, options?: Partial): Promise; cancelScheduledMessage(messageID: string): void; getScheduledMessages(): ScheduledMessage[]; kuninAngMgaScheduledMessage(): ScheduledMessage[]; updateScheduledMessage(messageID: string, updates: Partial): void; configureScheduler(config: SchedulerConfig): void; private startScheduler; configureSpamDetection(config: SpamDetectionConfig): void; iConfigAngSpamDetection(config: SpamDetectionConfig): void; checkForSpam(message: string, senderID: string, threadID: string): Promise; suriiinKungSpam(message: string, senderID: string, threadID: string): Promise; addToWhitelist(userID: string): void; addToBlacklist(userID: string): void; removeFromWhitelist(userID: string): void; removeFromBlacklist(userID: string): void; getSpamReports(): SpamReport[]; resolveSpamReport(reportID: string): void; getGroupAnalytics(groupID: string, period?: 'day' | 'week' | 'month' | 'all'): Promise; kuninAngGroupAnalytics(groupID: string, period?: 'day' | 'week' | 'month' | 'all'): Promise; exportGroupAnalytics(groupID: string, format: 'json' | 'csv', filePath: string): Promise; getTopContributors(groupID: string, limit?: number): Promise; kuninAngTopContributors(groupID: string, limit?: number): Promise; getGroupSentiment(groupID: string): Promise; configureBridge(config: MessagingBridgeConfig): void; iConfigAngBridge(config: MessagingBridgeConfig): void; addPlatform(platformConfig: PlatformConfig): void; removePlatform(platform: SupportedPlatform): void; getBridgeStats(): BridgeStats[]; kuninAngBridgeStats(): BridgeStats[]; sendCrossPlatformMessage(platform: SupportedPlatform, channel: string, message: string): Promise; magpadalaSaIbangPlatform(platform: SupportedPlatform, channel: string, message: string): Promise; getBridgedMessages(): BridgedMessage[]; startVoiceCall(threadID: string, options?: Partial, callback?: (err: Error | null, call: CallSession) => void): Promise; magsimulaNgVoiceCall(threadID: string, options?: Partial, callback?: (err: Error | null, call: CallSession) => void): Promise; startVideoCall(threadID: string, options?: Partial, callback?: (err: Error | null, call: CallSession) => void): Promise; magsimulaNgVideoCall(threadID: string, options?: Partial, callback?: (err: Error | null, call: CallSession) => void): Promise; private startCall; joinCall(callID: string, callback?: (err: Error | null, call: CallSession) => void): Promise; sumaliSaTawag(callID: string, callback?: (err: Error | null, call: CallSession) => void): Promise; endCall(callID: string, callback?: (err: Error | null) => void): Promise; tapusinAngTawag(callID: string, callback?: (err: Error | null) => void): Promise; toggleMute(callID: string, muted: boolean, callback?: (err: Error | null) => void): Promise; toggleVideo(callID: string, videoOn: boolean, callback?: (err: Error | null) => void): Promise; getActiveCalls(): CallSession[]; kuninAngMgaTawag(): CallSession[]; onCallEvent(callID: string, callback: CallCallback): void; private emitCallEvent; startScreenShare(callID: string, options?: ScreenShareOptions, callback?: (err: Error | null, session: ScreenShareSession) => void): Promise; magsimulaNgScreenShare(callID: string, options?: ScreenShareOptions, callback?: (err: Error | null, session: ScreenShareSession) => void): Promise; stopScreenShare(callID: string, callback?: (err: Error | null) => void): Promise; itigilAngScreenShare(callID: string, callback?: (err: Error | null) => void): Promise; pauseScreenShare(callID: string, callback?: (err: Error | null) => void): Promise; resumeScreenShare(callID: string, callback?: (err: Error | null) => void): Promise; configureModeration(config: ModerationConfig): void; iConfigAngModeration(config: ModerationConfig): void; evaluateMessage(message: string, senderID: string, threadID: string): Promise; suriiinAngMensahe(message: string, senderID: string, threadID: string): Promise; getModerationQueue(status?: 'pending' | 'approved' | 'rejected'): ModerationQueue; kuninAngModerationQueue(status?: 'pending' | 'approved' | 'rejected'): ModerationQueue; approveFlaggedMessage(resultID: string, callback?: (err: Error | null) => void): Promise; rejectFlaggedMessage(resultID: string, callback?: (err: Error | null) => void): Promise; getModerationStats(): ModerationStats; kuninAngModerationStats(): ModerationStats; addModerationRule(rule: ModerationRule): void; removeModerationRule(ruleID: string): void; configureEncryption(config: EncryptionConfig): void; iConfigAngEncryption(config: EncryptionConfig): void; enableEncryption(threadID: string, callback?: (err: Error | null, status: EncryptionStatus) => void): Promise; paganahinAngEncryption(threadID: string, callback?: (err: Error | null, status: EncryptionStatus) => void): Promise; disableEncryption(threadID: string, callback?: (err: Error | null) => void): Promise; patayinAngEncryption(threadID: string, callback?: (err: Error | null) => void): Promise; rotateEncryptionKeys(threadID: string, callback?: (err: Error | null, keyPair: EncryptionKeyPair) => void): Promise; getEncryptionStatus(threadID: string): EncryptionStatus | undefined; kuninAngEncryptionStatus(threadID: string): EncryptionStatus | undefined; verifyParticipant(threadID: string, userID: string, callback?: (err: Error | null, verified: boolean) => void): Promise; getEncryptedThreads(): EncryptedThread[]; configureBotMarketplace(config: BotMarketplaceConfig): void; iConfigAngBotMarketplace(config: BotMarketplaceConfig): void; private initializeBotListings; searchBots(options?: BotSearchOptions): Promise; hanapiNgMgaBot(options?: BotSearchOptions): Promise; getBotDetails(botID: string): Promise; kuninAngBotDetails(botID: string): Promise; installBot(botID: string, config?: Record, callback?: (err: Error | null, bot: InstalledBot) => void): Promise; iInstallAngBot(botID: string, config?: Record, callback?: (err: Error | null, bot: InstalledBot) => void): Promise; uninstallBot(botID: string, callback?: (err: Error | null) => void): Promise; iUninstallAngBot(botID: string, callback?: (err: Error | null) => void): Promise; getInstalledBots(): InstalledBot[]; kuninAngMgaInstalledBot(): InstalledBot[]; enableBot(botID: string): void; disableBot(botID: string): void; configureBotForThread(botID: string, threadID: string, config?: Record): void; getBotReviews(botID: string): Promise; submitBotReview(botID: string, rating: number, review: string): Promise; configureWebhookTransforms(config: WebhookTransformConfig): void; iConfigAngWebhookTransforms(config: WebhookTransformConfig): void; addWebhookTransformation(transformation: WebhookTransformation): void; magdagdagNgTransformation(transformation: WebhookTransformation): void; removeWebhookTransformation(transformationID: string): void; updateWebhookTransformation(transformationID: string, updates: Partial): void; getWebhookTransformations(): WebhookTransformation[]; kuninAngMgaTransformation(): WebhookTransformation[]; testWebhookTransformation(transformationID: string, testPayload: any): TransformationResult; enableWebhookTransformation(transformationID: string): void; disableWebhookTransformation(transformationID: string): void; logout(callback?: (err: Error | null) => void): Promise; } //# sourceMappingURL=api.d.ts.map