UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

36 lines (35 loc) • 5 kB
import { resolveWhatsAppHeartbeatRecipients } from "../../channels/plugins/whatsapp-heartbeat.js"; import { getDefaultLocalRoots as getDefaultLocalRootsImpl, loadWebMedia as loadWebMediaImpl, loadWebMediaRaw as loadWebMediaRawImpl, optimizeImageToJpeg as optimizeImageToJpegImpl } from "../../media/web-media.js"; type WhatsAppLightModule = typeof import("../../../extensions/whatsapp/light-runtime-api.js"); type WhatsAppHeavyModule = typeof import("../../../extensions/whatsapp/runtime-api.js"); export declare function getActiveWebListener(...args: Parameters<WhatsAppLightModule["getActiveWebListener"]>): ReturnType<WhatsAppLightModule["getActiveWebListener"]>; export declare function getWebAuthAgeMs(...args: Parameters<WhatsAppLightModule["getWebAuthAgeMs"]>): ReturnType<WhatsAppLightModule["getWebAuthAgeMs"]>; export declare function logWebSelfId(...args: Parameters<WhatsAppLightModule["logWebSelfId"]>): ReturnType<WhatsAppLightModule["logWebSelfId"]>; export declare function loginWeb(...args: Parameters<WhatsAppHeavyModule["loginWeb"]>): ReturnType<WhatsAppHeavyModule["loginWeb"]>; export declare function logoutWeb(...args: Parameters<WhatsAppLightModule["logoutWeb"]>): ReturnType<WhatsAppLightModule["logoutWeb"]>; export declare function readWebSelfId(...args: Parameters<WhatsAppLightModule["readWebSelfId"]>): ReturnType<WhatsAppLightModule["readWebSelfId"]>; export declare function webAuthExists(...args: Parameters<WhatsAppLightModule["webAuthExists"]>): ReturnType<WhatsAppLightModule["webAuthExists"]>; export declare function sendMessageWhatsApp(...args: Parameters<WhatsAppHeavyModule["sendMessageWhatsApp"]>): ReturnType<WhatsAppHeavyModule["sendMessageWhatsApp"]>; export declare function sendPollWhatsApp(...args: Parameters<WhatsAppHeavyModule["sendPollWhatsApp"]>): ReturnType<WhatsAppHeavyModule["sendPollWhatsApp"]>; export declare function sendReactionWhatsApp(...args: Parameters<WhatsAppHeavyModule["sendReactionWhatsApp"]>): ReturnType<WhatsAppHeavyModule["sendReactionWhatsApp"]>; export declare function createRuntimeWhatsAppLoginTool(...args: Parameters<WhatsAppLightModule["createWhatsAppLoginTool"]>): ReturnType<WhatsAppLightModule["createWhatsAppLoginTool"]>; export declare function createWaSocket(...args: Parameters<WhatsAppHeavyModule["createWaSocket"]>): ReturnType<WhatsAppHeavyModule["createWaSocket"]>; export declare function formatError(...args: Parameters<WhatsAppLightModule["formatError"]>): ReturnType<WhatsAppLightModule["formatError"]>; export declare function getStatusCode(...args: Parameters<WhatsAppLightModule["getStatusCode"]>): ReturnType<WhatsAppLightModule["getStatusCode"]>; export declare function pickWebChannel(...args: Parameters<WhatsAppLightModule["pickWebChannel"]>): ReturnType<WhatsAppLightModule["pickWebChannel"]>; export declare function resolveWaWebAuthDir(): WhatsAppLightModule["WA_WEB_AUTH_DIR"]; export declare function handleWhatsAppAction(...args: Parameters<WhatsAppHeavyModule["handleWhatsAppAction"]>): ReturnType<WhatsAppHeavyModule["handleWhatsAppAction"]>; export declare function loadWebMedia(...args: Parameters<typeof loadWebMediaImpl>): ReturnType<typeof loadWebMediaImpl>; export declare function loadWebMediaRaw(...args: Parameters<typeof loadWebMediaRawImpl>): ReturnType<typeof loadWebMediaRawImpl>; export declare function monitorWebChannel(...args: Parameters<WhatsAppHeavyModule["monitorWebChannel"]>): ReturnType<WhatsAppHeavyModule["monitorWebChannel"]>; export declare function monitorWebInbox(...args: Parameters<WhatsAppHeavyModule["monitorWebInbox"]>): ReturnType<WhatsAppHeavyModule["monitorWebInbox"]>; export declare function optimizeImageToJpeg(...args: Parameters<typeof optimizeImageToJpegImpl>): ReturnType<typeof optimizeImageToJpegImpl>; export declare function runWebHeartbeatOnce(...args: Parameters<WhatsAppHeavyModule["runWebHeartbeatOnce"]>): ReturnType<WhatsAppHeavyModule["runWebHeartbeatOnce"]>; export declare function startWebLoginWithQr(...args: Parameters<WhatsAppHeavyModule["startWebLoginWithQr"]>): ReturnType<WhatsAppHeavyModule["startWebLoginWithQr"]>; export declare function waitForWaConnection(...args: Parameters<WhatsAppHeavyModule["waitForWaConnection"]>): ReturnType<WhatsAppHeavyModule["waitForWaConnection"]>; export declare function waitForWebLogin(...args: Parameters<WhatsAppHeavyModule["waitForWebLogin"]>): ReturnType<WhatsAppHeavyModule["waitForWebLogin"]>; export declare const extractMediaPlaceholder: (...args: Parameters<WhatsAppHeavyModule["extractMediaPlaceholder"]>) => string | undefined; export declare const extractText: (...args: Parameters<WhatsAppHeavyModule["extractText"]>) => string | undefined; export declare function getDefaultLocalRoots(...args: Parameters<typeof getDefaultLocalRootsImpl>): ReturnType<typeof getDefaultLocalRootsImpl>; export declare function resolveHeartbeatRecipients(...args: Parameters<typeof resolveWhatsAppHeartbeatRecipients>): ReturnType<typeof resolveWhatsAppHeartbeatRecipients>; export {};