export declare function regsub(pattern: string | RegExp, str: string, replacement: string, all?: boolean, caseInsensitive?: boolean): string;