/** * WhatsApp Cloud API hard limits we clamp against when lowering IR to * messages. Sources: Cloud API "Messages" + "Interactive messages" docs. */ export declare const WA_LIMITS: { /** Max chars in a text message body. */ readonly bodyText: 4096; /** Max reply buttons in an interactive `button` message. */ readonly replyButtons: 3; /** Max chars in a reply-button title. */ readonly buttonTitle: 20; /** Max chars in an interactive header/body/footer text. */ readonly interactiveBody: 1024; readonly interactiveHeader: 60; readonly interactiveFooter: 60; /** Max total rows across all sections in an interactive `list` message. */ readonly listRows: 10; /** Max chars in a list-row title. */ readonly rowTitle: 24; /** Max chars in a list-row description. */ readonly rowDescription: 72; /** Max chars in the list's open button label. */ readonly listButton: 20; /** Max chars in an interactive control id (button/row id). */ readonly controlId: 256; }; /** Truncate to max chars, appending an ellipsis marker if longer. Never returns >max. */ export declare function truncateText(text: string, max: number): string; /** Clamp an array to max items; return kept items plus how many overflowed. */ export declare function clampArray(items: readonly T[], max: number): { items: T[]; overflow: number; }; //# sourceMappingURL=budget.d.ts.map