1 | import { MatrixValue } from '../types';
|
2 | /**
|
3 | * HTML-safe compress white-spaces.
|
4 | * @param str - String to compress.
|
5 | * @returns String.
|
6 | */
|
7 | export declare function compressSpaces(str: string): string;
|
8 | /**
|
9 | * HTML-safe left trim.
|
10 | * @param str - String to trim.
|
11 | * @returns String.
|
12 | */
|
13 | export declare function trimLeft(str: string): string;
|
14 | /**
|
15 | * HTML-safe right trim.
|
16 | * @param str - String to trim.
|
17 | * @returns String.
|
18 | */
|
19 | export declare function trimRight(str: string): string;
|
20 | /**
|
21 | * String to numbers array.
|
22 | * @param str - Numbers string.
|
23 | * @returns Numbers array.
|
24 | */
|
25 | export declare function toNumbers(str: string): number[];
|
26 | /**
|
27 | * String to matrix value.
|
28 | * @param str - Numbers string.
|
29 | * @returns Matrix value.
|
30 | */
|
31 | export declare function toMatrixValue(str: string): MatrixValue;
|
32 | /**
|
33 | * Normalize attribute name.
|
34 | * @param name - Attribute name.
|
35 | * @returns Normalized attribute name.
|
36 | */
|
37 | export declare function normalizeAttributeName(name: string): string;
|
38 | /**
|
39 | * Parse external URL.
|
40 | * @param url - CSS url string.
|
41 | * @returns Parsed URL.
|
42 | */
|
43 | export declare function parseExternalUrl(url: string): string;
|
44 | /**
|
45 | * Transform floats to integers in rgb colors.
|
46 | * @param color - Color to normalize.
|
47 | * @returns Normalized color.
|
48 | */
|
49 | export declare function normalizeColor(color: string): string;
|
50 | //# sourceMappingURL=string.d.ts.map |
\ | No newline at end of file |