| 1 |
/** |
| 2 |
* Date: 2015-10-05 |
| 3 |
* Author: Kasper Søfren <[email protected]> (https://github.com/kafoso) |
| 4 |
* |
| 5 |
* A truncation feature, where the ellipsis will be placed in the dead-center of the URL. |
| 6 |
* |
| 7 |
* @param {String} url A URL. |
| 8 |
* @param {Number} truncateLen The maximum length of the truncated output URL string. |
| 9 |
* @param {String} ellipsisChars The characters to place within the url, e.g. "..". |
| 10 |
* @return {String} The truncated URL. |
| 11 |
*/ |
| 12 |
export declare function truncateMiddle(url: string, truncateLen: number, ellipsisChars?: string): string; |