unreal.js
Version:
A pak reader for games like VALORANT & Fortnite written in Node.JS
17 lines (16 loc) • 920 B
TypeScript
/// <reference types="node" />
/// <reference types="ref-napi" />
export declare class Utils {
static replaceAll(str: string, value1: string, value2: string): string;
static bufferIsNotEmpty(buffer: Buffer): boolean;
static clamp(self: number, min: number, max: number): number;
static pathAppend(str1: string, str2: string, strLength?: number): string;
static isAligned(value: number, alignment: number): boolean;
static alignBigInt(value: bigint, alignment: bigint): number;
static align(value: number, alignment: number): number;
static repeat(times: number, action: (n: number) => void): void;
static toRadians(angdeg: number): number;
static takeWhile(buf: Buffer, filter: (byte: number) => boolean): Buffer;
static takeWhileStr(str: string, filter: (char: string) => boolean): string;
static divideAndRoundUp(int: number, divisor: number): number;
}