@codebucket/whatsapp
Version:
A reusable WhatsApp Business API client with template and non-template support, webhook handling, pluggable storage, and text sanitization
12 lines (11 loc) • 459 B
TypeScript
/**
* Cleans a template variable text by removing disallowed characters,
* trimming excessive whitespace, escaping unsupported patterns,
* and stripping newlines (which are not allowed).
*/
export declare function cleanTemplateText(input: string): string;
/**
* Validates template text against WhatsApp Business API rules.
* Returns an array of warnings (no errors are thrown).
*/
export declare function validateTemplateText(input: string): string[];