declare function rtrim(str: string, chars?: string | string[]): string; export = rtrim;