/** * Set CaseMapper object references to ilib's current locale (its most recently set, by default) */ function initCaseMappers(): void; /** * Returns the current ilib.ResBundle */ function getResBundle(): ResBundle; /** * Locale-safely convert a string to lower case. */ function toLowerCase(inString: string): string; /** * Creates a new ilib.ResBundle for string translation */ function createResBundle(any, locale: Locale): Promise | ResBundle; /** * Represents a binary buffer of unsigned bytes that will be parsed in various ways. The buffer can be decoded by reading various lengths of bytes and interpreting them as longs or unsigned bytes, etc. The bytes are interpreted in big-endian (network) format. */ declare class PackedBuffer { /** * Return the specified number of signed long integers from the current location in the buffer as an array of numbers and advance the current pointer in the buffer. This method will only return as many longs as are available in the rest of the buffer. */ getLongs(num: number): number[]; /** * Return a signed long integer from the current location in the buffer as an array of numbers and advance the current pointer in the buffer. This method will only return a long if it is available in the buffer, otherwise it will return undefined. */ getLong(): number; /** * Return the specified number of signed byte integers from the current location in the buffer as an array of numbers and advance the current pointer in the buffer. This method will only return as many bytes as are available in the rest of the buffer. */ getBytes(num: number | void): number[]; /** * Return a signed byte integer from the current location in the buffer as an array of numbers and advance the current pointer in the buffer. This method will only return a byte if it is available in the buffer, otherwise it will return undefined. */ getByte(): number; /** * Return the specified number of unsigned byte integers from the current location in the buffer as an array of numbers and advance the current pointer in the buffer. This method will only return as many bytes as are available in the rest of the buffer. */ getUnsignedBytes(num: number): number[]; /** * Return a string made out of the given number of bytes and convert from UTF-8 to UTF-16. */ getString(num: number): string; /** * Advance the current pointer in the buffer by the specified number of bytes in the string. */ skip(num: number): void; } /** * Locale-safely convert a string to upper case. */ function toUpperCase(inString: string): string; /** * Set the locale for the strings that $L loads. This may reload the string resources if necessary. */ function setResBundle(any, spec: string): ResBundle; /** * Deletes the current bundle object of strings and clears the cache. */ function clearResBundle(): void; /** * Represents a binary zone info file of the sort that the Unix Zone Info Compiler produces. */ declare class ZoneInfoFile { /** * Binary search a sorted array of numbers for a particular target value. If the exact value is not found, it returns the index of the largest entry that is smaller than the given target value.
*/
bsearch(target: number, arr: Array