node/autolinker/dist/es2015/truncate/truncate-end.d.ts
raw| 1 | /** |
| 2 | * A truncation feature where the ellipsis will be placed at the end of the URL. |
| 3 | * |
| 4 | * @param {String} anchorText |
| 5 | * @param {Number} truncateLen The maximum length of the truncated output URL string. |
| 6 | * @param {String} ellipsisChars The characters to place within the url, e.g. "..". |
| 7 | * @return {String} The truncated URL. |
| 8 | */ |
| 9 | export declare function truncateEnd(anchorText: string, truncateLen: number, ellipsisChars?: string): string; |