UNPKG

@juzi/wechaty-puppet-whatsapp

Version:
61 lines 3.15 kB
import type { WhatsAppClientType, WhatsAppContact, InviteV4Data, MessageContent, MessageSendOptions, CreateGroupResult } from '../schema/whatsapp-type.js'; export declare class RequestManager { private whatsapp; private rateManager; constructor(whatsapp: WhatsAppClientType); logout(): Promise<void>; acceptPrivateRoomInvite(invitation: InviteV4Data): Promise<{ status: number; }>; acceptRoomInvite(inviteCode: string): Promise<string>; archiveChat(chatId: string): Promise<boolean>; unarchiveChat(chatId: string): Promise<boolean>; createRoom(name: string, participants: WhatsAppContact[] | string[]): Promise<CreateGroupResult>; destroy(): Promise<void>; getBLockedContacts(): Promise<WhatsAppContact[]>; getChatById(chatId: string): Promise<import("@juzi/whatsapp-web.js").Chat>; getChatLabels(chatId: string): Promise<import("@juzi/whatsapp-web.js").Label[]>; getChats(): Promise<import("@juzi/whatsapp-web.js").Chat[]>; getChatsByLabelId(labelId: string): Promise<import("@juzi/whatsapp-web.js").Chat[]>; getContactById(contactId: string): Promise<WhatsAppContact>; getContacts(): Promise<WhatsAppContact[]>; getCountryCode(whatsappId: string): Promise<string>; getFormattedNumber(whatsappId: string): Promise<string>; getInviteInfo(inviteId: string): Promise<object>; getLabelById(labelId: string): Promise<import("@juzi/whatsapp-web.js").Label>; getLabels(): Promise<import("@juzi/whatsapp-web.js").Label[]>; getMessageWithId(id: string): Promise<import("@juzi/whatsapp-web.js").Message | undefined>; getWhatsappIdByNumber(number: string): Promise<import("@juzi/whatsapp-web.js").ContactId | null>; getAvatarUrl(contactId: string): Promise<string>; getState(): Promise<import("@juzi/whatsapp-web.js").WAState>; getWhatsAppVersion(): Promise<string>; init(): Promise<void>; isWhatsappUser(contactId: string): Promise<boolean>; markChatUnread(chatId: string): Promise<void>; muteChat(chatId: string): Promise<{ isMuted: boolean; muteExpiration: number; }>; unmuteChat(chatId: string): Promise<{ isMuted: boolean; muteExpiration: number; }>; pinChat(chatId: string): Promise<boolean>; unpinChat(chatId: string): Promise<boolean>; resetConnection(): Promise<void>; searchMessage(query: string, options?: { chatId?: string; page?: number; limit?: number; }): Promise<import("@juzi/whatsapp-web.js").Message[]>; sendMessage(chatId: string, content: MessageContent, options?: MessageSendOptions): Promise<Promise<import("@juzi/whatsapp-web.js").Message>>; sendPresenceAvailable(): Promise<void>; markChatRead(chatId: string): Promise<boolean>; setNickname(name: string): Promise<boolean>; setStatusMessage(status: string): Promise<void>; } export type RequestManagerAPIs = Pick<RequestManager, { readonly [K in keyof RequestManager]: RequestManager[K] extends Function ? K : never; }[keyof RequestManager]>; export declare const requestManagerKeys: string[]; //# sourceMappingURL=request-manager.d.ts.map