/** Maximum message body length in characters. */ export declare const MAX_BODY_CHARS = 16384; /** The character-count threshold above which the live counter chip * appears. Show once `len` crosses 90 % of the cap. */ export declare function shouldShowCounter(len: number, max: number): boolean; /** Cmd/Ctrl + Enter sends. Plain Enter inserts a newline (textarea * default). Returns true when the keydown event matches the * send-shortcut shape. * M7: IME guard — isComposing=true or keyCode=229 (IME processing) * suppresses the shortcut so CJK users don't accidentally send * mid-composition. */ export declare function isCmdEnter(ev: KeyboardEvent): boolean; /** Auto-grow target height (px) for a textarea, capped at maxPx. * Snap to scrollHeight, never exceed the cap. */ export declare function autogrowHeightPx(scrollHeight: number, maxPx: number): number; //# sourceMappingURL=textfield-helpers.d.ts.map