UNPKG

whatsapp-api-js

Version:

A TypeScript server agnostic Whatsapp's Official API framework

29 lines 1.27 kB
import type { WhatsAppAPIConstructorArguments } from "../types.d.ts"; /** * A Node\@^19 quick setup for the WhatsAppAPI * * @remarks This method will return the same object as the one passed in * * @param settings - The WhatsAppAPI arguments * @returns A WhatsAppAPI arguments object for Node\@^19 */ export declare function NodeNext(settings: WhatsAppAPIConstructorArguments): WhatsAppAPIConstructorArguments; /** * A Node\@18 quick setup for the WhatsAppAPI * * @remarks Assumes that the fetch function is available globally * * @param settings - The WhatsAppAPI arguments * @returns A WhatsAppAPI arguments object for Node\@^18 */ export declare function Node18(settings: WhatsAppAPIConstructorArguments): WhatsAppAPIConstructorArguments; /** * A Node 15 to 17 quick setup for the WhatsAppAPI * * @deprecated Node 15 to 17 reached EoL and are no longer supported by the library * @param settings - The WhatsAppAPI arguments * @param fetch_ponyfill - The fetch ponyfill function to use (e.g. node-fetch or undici) * @returns A WhatsAppAPI arguments object for Node 15 to 17 */ export declare function Node15(settings: WhatsAppAPIConstructorArguments, fetch_ponyfill: typeof fetch): WhatsAppAPIConstructorArguments; //# sourceMappingURL=node.d.ts.map