import * as PUPPET from '@juzi/wechaty-puppet'; import { FileBox, type FileBoxInterface } from '../config.js'; import type PuppetWhatsApp from '../puppet-whatsapp.js'; import type { WhatsAppContactPayload as RoomPayload, InviteV4Data } from '../schema/whatsapp-type.js'; export declare function roomList(this: PuppetWhatsApp): Promise; export declare function roomCreate(this: PuppetWhatsApp, contactIdList: string[], topic: string): Promise; export declare function roomAdd(this: PuppetWhatsApp, roomId: string, contactId: string): Promise; export declare function roomDel(this: PuppetWhatsApp, roomId: string, contactIds: string | string[]): Promise; export declare function roomQuit(this: PuppetWhatsApp, roomId: string): Promise; export declare function roomAvatar(this: PuppetWhatsApp, roomId: string, avatar?: FileBoxInterface): Promise; export declare function roomTopic(this: PuppetWhatsApp, roomId: string): Promise; export declare function roomTopic(this: PuppetWhatsApp, roomId: string, topic: string): Promise; export declare function roomQRCode(this: PuppetWhatsApp, roomId: string): Promise; /** * Get member id list from cache * @param { PuppetWhatsApp } this whatsapp client * @param { string } roomId roomId * @returns { string[] } member id list */ export declare function roomMemberList(this: PuppetWhatsApp, roomId: string): Promise; export declare function roomMemberRawPayload(this: PuppetWhatsApp, roomId: string, contactId: string): Promise; export declare function roomMemberRawPayloadParser(this: PuppetWhatsApp, rawPayload: PUPPET.payloads.RoomMember): Promise; export declare function roomAnnounce(this: PuppetWhatsApp, roomId: string): Promise; export declare function roomAnnounce(this: PuppetWhatsApp, roomId: string, text: string): Promise; /** * * Room Invitation * */ export declare function roomInvitationAccept(this: PuppetWhatsApp, roomInvitationId: string): Promise; export declare function roomInvitationRawPayload(this: PuppetWhatsApp, roomInvitationId: string): Promise>; /** * * @param this PuppetWhatsapp * @param rawPayload Partial * @returns Partial * TODO: Here we return Partial for roomInvitationAccept usage, We may need other fields required by RoomInvitationPayload */ export declare function roomInvitationRawPayloadParser(this: PuppetWhatsApp, rawPayload: any): Promise; export declare function roomRawPayload(this: PuppetWhatsApp, id: string): Promise; export declare function roomRawPayloadParser(this: PuppetWhatsApp, roomPayload: RoomPayload): Promise; //# sourceMappingURL=room.d.ts.map