export interface TruncateOptions { length?: number; omission?: string; countType?: number; } export default function truncate(str?: string, options?: TruncateOptions): string;