/** * Read a string value from an unknown value */ export declare const read: (v: unknown) => string | undefined; /** * Apply a function over a string value if the string is not empty. * Otherwise, return original string. */ export declare function onNoEmpty(f: (v: T) => R, s: ""): ""; export declare function onNoEmpty(f: (v: T) => R, s: T): R; export declare const capitalize: (str: string) => string; /** * Add ... after given position */ export declare const ellipsis: (str: string, length: number) => string;