@solufy/evolution-sdk
Version:
Unofficial SDK for the Evolution Whatsapp API v2
31 lines (28 loc) • 932 B
text/typescript
import { ApiService } from '../../api/service.mjs';
import { CheckOptions, CheckResponse } from './schemas/check.mjs';
import { FindAllChatsResponse } from './schemas/find-all.mjs';
import { PresenceOptions } from './schemas/presence.mjs';
import '../../schemas/client.mjs';
import 'zod';
import '../../types/api.mjs';
import 'libphonenumber-js';
import '../../types/tags.mjs';
declare class ChatsModule {
private readonly api;
constructor(api: ApiService);
/**
* Checks if a number has WhatsApp
* @param numbers - Number(s) (with country code) to check
*/
check(...numbers: CheckOptions | CheckOptions[]): Promise<CheckResponse>;
/**
* Gets all chats
*/
findAll(): Promise<FindAllChatsResponse>;
/**
* Sends a presence to a certain chat
* @param options - Presence options
*/
sendPresence(options: PresenceOptions): Promise<void>;
}
export { ChatsModule };