import { PipeTransform } from '@angular/core'; /** * This pipe can be used to shorten long text by a defined length. * * In markup: * * {{ str | dspTruncate:24 }} * * or * * {{ str | dspTruncate:24:'...' }} * * The first optional parameter defines the length where to truncate the string. * The second optional parameter defines the characters to append to the shortened string. Default is '...'. * * The advantage of this pipe over the default Angular slice pipe is the simplicity of adding * additional characters at the end of the shortened string. * The same construct with Angular slice pipe looks as follow: `{{ (str.length>24)? (str | slice:0:24)+'...':(str) }}`. * */ export declare class TruncatePipe implements PipeTransform { defaultLimit: number; defaultTrail: string; transform(value: string, limit?: number, trail?: string): string; }