---@diagnostic disable: missing-return, lowercase-global
---@meta

---@param s string
---@param pattern string
---@param rep string
---@param repTable table
---@param repFunc function
---@param maxReplaced number
---@return string newString
---@return number numMatched
---Returns a string in which occurrences of a pattern are replaced. Alias for the standard library function string.gsub.
function gsub(s, pattern, rep, repTable, repFunc, maxReplaced) end
