import { Player } from '../../game/player'; import { VbsApi } from '../vbs-api'; import { VbsMath } from './math'; export declare class Stdlib extends VbsApi { private readonly math; get Empty(): undefined; get Nothing(): undefined; get Null(): null; get Err(): import("./err").Err; get Math(): VbsMath; /** * String Constants */ get vbCr(): string; get vbCrLf(): string; get vbFormFeed(): string; get vbLf(): string; get vbNewLine(): string; get vbNullChar(): string; get vbNullString(): null; get vbTab(): string; get vbVerticalTab(): string; Abs(n: number): number; Cos(n: number): number; /** * Converts to Single Data Type: * * -3.402823E+38 through -1.401298E-45 for negative values; * 1.401298E-45 through 3.402823E+38 for positive values. * * @param n Number to convert * @see https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/functions/type-conversion-functions */ Csng(n: number): number; Int(n: number): number; Sin(n: number): number; Sqr(n: number): number; UBound(a: [], dimension?: number): number; IsArray(obj: any): boolean; IsEmpty(v: any): boolean; IsObject(v: any): boolean; Randomize(): void; GetRef(proc: string, scope: any): any; TypeName(obj: any): string; RGB(r: number, g: number, b: number): number; /** * The InStrRev function returns the position of the first occurrence of one string within another. The search begins from the end of string, but the position returned counts from the beginning of the string. * * The InStrRev function can return the following values: * - If string1 is "" - InStrRev returns 0 * - If string1 is Null - InStrRev returns Null * - If string2 is "" - InStrRev returns start * - If string2 is Null - InStrRev returns Null * - If string2 is not found - InStrRev returns 0 * - If string2 is found within string1 - InStrRev returns the position at which match is found * - If start > Len(string1) - InStrRev returns 0 * * @param string1 The string to be searched * @param string2 The string expression to search for * @param start Specifies the starting position for each search. The search begins at the last character position by default (-1) * @see https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualbasic.strings.instrrev?view=netframework-4.8 */ InStrRev(string1: string, string2: string, start?: number): any; /** * The Left function returns a specified number of characters from the left side of a string. * * @param str The string to return characters from * @param length Specifies how many characters to return. If set to 0, an empty string ("") is returned. If set to greater than or equal to the length of the string, the entire string is returned */ Left(str: string, length: number): string; CreateObject(name: string, player: Player): any; MsgBox(msg: string): void; protected _getPropertyNames(): string[]; }