mirror of
https://github.com/dergigi/boris.git
synced 2025-12-17 22:54:30 +01:00
- Add project structure with TypeScript, React, and Vite - Implement nostr authentication using browser extension (NIP-07) - Add NIP-51 compliant bookmark fetching and display - Create minimal UI with login and bookmark components - Integrate applesauce-core and applesauce-react libraries - Add responsive styling with dark/light mode support - Include comprehensive README with setup instructions This is a minimal MVP for a nostr bookmark client that allows users to view their bookmarks according to NIP-51 specification.
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
import GraphemerIterator from './GraphemerIterator';
|
|
export default class Graphemer {
|
|
/**
|
|
* Returns the next grapheme break in the string after the given index
|
|
* @param string {string}
|
|
* @param index {number}
|
|
* @returns {number}
|
|
*/
|
|
static nextBreak(string: string, index: number): number;
|
|
/**
|
|
* Breaks the given string into an array of grapheme clusters
|
|
* @param str {string}
|
|
* @returns {string[]}
|
|
*/
|
|
splitGraphemes(str: string): string[];
|
|
/**
|
|
* Returns an iterator of grapheme clusters in the given string
|
|
* @param str {string}
|
|
* @returns {GraphemerIterator}
|
|
*/
|
|
iterateGraphemes(str: string): GraphemerIterator;
|
|
/**
|
|
* Returns the number of grapheme clusters in the given string
|
|
* @param str {string}
|
|
* @returns {number}
|
|
*/
|
|
countGraphemes(str: string): number;
|
|
/**
|
|
* Given a Unicode code point, determines this symbol's grapheme break property
|
|
* @param code {number} Unicode code point
|
|
* @returns {number}
|
|
*/
|
|
static getGraphemeBreakProperty(code: number): number;
|
|
/**
|
|
* Given a Unicode code point, returns if symbol is an extended pictographic or some other break
|
|
* @param code {number} Unicode code point
|
|
* @returns {number}
|
|
*/
|
|
static getEmojiProperty(code: number): number;
|
|
}
|
|
//# sourceMappingURL=Graphemer.d.ts.map
|