/** * `` character conversions (spec §7.5). * * Each encoding takes a single character and returns a STRING. For base36, * ascii, and unicode that string is the *decimal* value of the character (so * `'A'` under base36 is `"10"`); for hex/binary/octal it is the code point * rendered in that base. Folds then consume the joined digits (spec §8). * * A "character" is one Unicode code point — strings are iterated by code point * elsewhere, so this stays consistent and portable (no reliance on JS * UTF-16 `charCodeAt`). */ export declare const ENCODINGS: readonly ["base36", "ascii", "unicode", "hex", "binary", "octal"]; export type Encoding = (typeof ENCODINGS)[number]; /** Return the single code point of `ch`, or error if it is not exactly one. */ export declare function codePointOf(ch: string): number; /** Encode a single character under the named system, returning a string. */ export declare function encodeChar(ch: string, as: string): string; //# sourceMappingURL=encode.d.ts.map