UNPKG

1 kBTypeScriptView Raw
1/**
2 * HTML-safe compress white-spaces.
3 * @param str - String to compress.
4 */
5export declare function compressSpaces(str: string): string;
6/**
7 * HTML-safe left trim.
8 * @param str - String to trim.
9 */
10export declare function trimLeft(str: string): string;
11/**
12 * HTML-safe right trim.
13 * @param str - String to trim.
14 */
15export declare function trimRight(str: string): string;
16/**
17 * String to numbers array.
18 * @param str - Numbers string.
19 */
20export declare function toNumbers(str: string): number[];
21/**
22 * Normalize attribute name.
23 * @param name - Attribute name.
24 */
25export declare function normalizeAttributeName(name: string): string;
26/**
27 * Parse external URL.
28 * @param url - CSS url string.
29 */
30export declare function parseExternalUrl(url: string): string;
31/**
32 * Transform floats to integers in rgb colors.
33 * @param color - Color to normalize.
34 */
35export declare function normalizeColor(color: string): string;
36//# sourceMappingURL=string.d.ts.map
\No newline at end of file