// Type definitions for clamp-js-main 0.11 // Project: https://github.com/jmenglis/clamp-js-main#readme // Definitions by: Sinziana Nicolae // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace clamp { interface ClampOptions { clamp?: number|string; useNativeClamp?: boolean; splitOnChars?: string[]; animate?: boolean; truncationChar?: string; truncationHTML?: string | null; } interface ClampResponse { original: string; clamped: string; } } export = clamp; declare function clamp(element: HTMLElement, options?: clamp.ClampOptions): clamp.ClampResponse;