export declare namespace StringUtil { /** * Returns a string, truncated as needed, of length limit or less. When * truncated, appends "…". */ function ellipsize(str: string, limit: number): string; /** Converts the first character of str to uppercase. */ function capitalize(str: T): Capitalize; /** Returns true if string is nullish, empty, or whitespace-only. */ function isBlank(str: string | undefined | null): boolean; /** * Converts an unknown type to a verbose stacktrace if an error or string form * otherwise. */ function caughtToString(val: unknown, preferredErrorProperty?: 'stack' | 'message' | 'name'): string; /** * Converts an unknown type to a verbose stacktrace if an error or string form * otherwise. Prefer caughtToString where possible for typing reasons. */ function caughtToStringUntyped(val: unknown, preferredErrorProperty?: string): string; } //# sourceMappingURL=StringUtil.d.ts.map