export interface Truncate { (maxLength: number, value: string, suffix?: string): string; (maxLength: number): (value: string, suffix?: string) => string; } /** * Truncate a string to `maxLength` and append a suffix. * * @param maxLength * @param value * @param suffix * * @example * * truncate('hello world', 100); //=> 'hello world' * truncate('hello world', 5); //=> 'hello…' * truncate('你好,世界', 2); //=> '你好…' */ export declare const truncate: Truncate; export default truncate;