1interface String {
2    /** Removes the trailing white space and line terminator characters from a string. */
3    trimEnd(): string;
4
5    /** Removes the leading white space and line terminator characters from a string. */
6    trimStart(): string;
7
8    /**
9     * Removes the leading white space and line terminator characters from a string.
10     * @deprecated A legacy feature for browser compatibility. Use `trimStart` instead
11     */
12    trimLeft(): string;
13
14    /**
15     * Removes the trailing white space and line terminator characters from a string.
16     * @deprecated A legacy feature for browser compatibility. Use `trimEnd` instead
17     */
18    trimRight(): string;
19}
20