/** * A text that has an emoji matches this pattern. It is a cheap check before creating the emoji pattern. * Each emoji has one of them: * * - U+203C..U+2B55, U+3030, U+303D, U+3297, U+3299: the emoji of the Basic Multilingual Plane, and U+20E3 of a keycap * - U+FE0F: the variation selector of an emoji that is a text character by default, such as "\u00A9\uFE0F" * - U+D83C..U+D83E: the high surrogate of U+1F000..U+1FFFF */ export declare const MAY_HAVE_EMOJI_PATTERN: RegExp; /** * Get the number of the columns that the string uses in a terminal. * It is based on https://github.com/sindresorhus/string-width v4 * * Node.js has the same function internally, but it is not a public API yet. * Replace this file with the function of Node.js when it is available in the supported versions of Node.js. * * - An escape sequence, a control character and a combining character use no column * - A fullwidth character and an emoji use two columns */ export declare const stringWidth: (text: string) => number; //# sourceMappingURL=string-width.d.ts.map