UNPKG

529 BTypeScriptView Raw
1import { SetTokens } from './types';
2/**
3 * Finds character representations in str and convert all to
4 * their respective characters.
5 *
6 * @param {string} str
7 * @returns {string}
8 */
9export declare const strToChars: (str: string) => string;
10/**
11 * Turns class into tokens
12 * reads str until it encounters a ] not preceeded by a \
13 *
14 * @param {string} str
15 * @param {string} regexpStr
16 * @returns {Array.<Array.<Object>, number>}
17 */
18export declare const tokenizeClass: (str: string, regexpStr: string) => [SetTokens, number];