image-in-browser
Version:
Package for encoding / decoding images, transforming images, applying filters, drawing primitives on images on the client side (no need for server Node.js)
22 lines (21 loc) • 667 B
TypeScript
/** @format */
/**
* Abstract class providing string utility methods.
*/
export declare abstract class StringUtils {
/**
* UTF-8 text decoder.
*/
static readonly utf8Decoder: import("node:util").TextDecoder;
/**
* Latin-1 text decoder.
*/
static readonly latin1Decoder: import("node:util").TextDecoder;
/**
* Converts a string to an array of code points.
* @param {string} str - The string to convert.
* @returns {Uint8Array} A Uint8Array containing the code points.
* @throws {LibError} If the string contains an unknown character code point.
*/
static getCodePoints(str: string): Uint8Array;
}