& T>,
): Omit & T;
declare function push(arr: T[], ...items: T[]): T;
declare function rand(): num;
declare function regexp(source: str, flags?: str): regexp;
declare function render(path: str, scope?: object): str;
declare function render(fn: (...args: A[]) => any, ...args: A[]): str;
declare function replace(
str: str,
pattern: regexp | str,
replace: (match: str, ...capture_block: str[]) => str,
limit?: int,
): str;
declare function replace(str: str, pattern: regexp | str, replace: str, limit?: int): str;
declare function require(mod: str): any;
declare function reverse(str: str): str;
declare function reverse(arr: T[]): T[];
declare function rindex(str: str, needle: any): int;
declare function rindex(arr: uc_array, needle: any): int;
declare function rtrim(str: str, c?: str): str;
declare function shift(arr: T[]): T | null;
declare function sin(x: numeric): num;
declare function sleep(ms: int): bool;
declare function slice(arr: T[], offset?: int | nil, end?: int): T[];
declare function sort(arr: T[], sort_fn?: (lhs: T, rhs: T) => int): T[];
declare function sourcepath(depth?: int | null, dironly?: bool): str | null;
declare function splice(arr: T[], offset: int, len: int, ...items: T[]): T | null;
declare function split(str: str, sep: str | regexp, limit?: int): str[];
declare function sprintf(fmt: str, ...args: any[]): str;
declare function sqrt(x: numeric): num;
declare function srand(n: numeric): null;
declare function substr(str: str, offset: int, len?: int): str;
declare function system(cmd: str | (str | num)[], timeout_ms?: numeric): int;
declare function time(): int;
declare function timegm(time: DateTimeSpec): int;
declare function timelocal(time: DateTimeSpec): int;
declare function trace(level?: int): null;
declare function trim(str: str, c?: str): str;
declare function type(x: T): UcNameOfJsType;
declare function uc(str: str): str;
declare function uchr(...n: int[]): str;
declare function uniq(arr: T[]): T[];
declare function unshift(arr: T[], ...items: T[]): T;
declare function values(obj: obj): T[];
declare function warn(...ars: any[]): int;
declare function wildcard(subject: str, pattern: str, ignore_case?: bool): bool;
declare const ARGV: str[];