/** * Shorten a string and add a postfix if it goes over a specific length, will autotrim value. * * @param {string} val - String value to shorten * @param {number} length - Length to shorten it to * @param {string} postfix - (default:'...') Postfix to use in case the string got shortened * @param {boolean?} truncate_words - (default:true) Truncate words or not */ declare function shorten(val: string, length: number, postfix?: string, truncate_words?: boolean): string; export { shorten, shorten as default };