@wppconnect-team/wppconnect
Version:
WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligen
13 lines (12 loc) • 681 B
TypeScript
import * as puppeteer from 'puppeteer';
export declare const getInterfaceStatus: (waPage: puppeteer.Page) => Promise<puppeteer.HandleFor<Awaited<ReturnType<any>>>>;
/**
* Validates if client is authenticated
* @returns true if is authenticated, false otherwise
* @param waPage
*/
export declare const isAuthenticated: (waPage: puppeteer.Page) => Promise<boolean>;
export declare const needsToScan: (waPage: puppeteer.Page) => Promise<boolean>;
export declare const isInsideChat: (waPage: puppeteer.Page) => Promise<boolean>;
export declare const isConnectingToPhone: (waPage: puppeteer.Page) => Promise<boolean>;
export declare function asciiQr(code: string): Promise<string>;