export declare function gsub(str: string, pattern: string | RegExp, replacement: string): string;