MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: /home/cafsindia/snap.cafsinfotech.in/node_modules/grapheme-splitter/index.d.ts
// Type definitions for grapheme-splitter

/*~ Note that ES6 modules cannot directly export class objects.
 *~ This file should be imported using the CommonJS-style:
 *~
 *~   import GraphemeSplitter = require('grapheme-splitter')
 *~
 *~ Refer to the documentation to understand common
 *~ workarounds for this limitation of ES6 modules.
 *~
 *~   https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html
 */

declare class GraphemeSplitter {
  constructor();
  /** iterate the string to an iterable iterator of grapheme clusters */
  iterateGraphemes(s: string): IterableIterator<string>;
  /** split the string to an array of grapheme clusters */
  splitGraphemes(s: string): string[];
  /** count the number of grapheme clusters in a string */
  countGraphemes(s: string): number;
}

export = GraphemeSplitter;