UNPKG

@setkeeper/text-message-utils

Version:

Get a Text Message's size depending on it's content. Get it's encoding and which characters are not GSM-7 compatible.

13 lines (12 loc) 313 B
declare const GraphemeSplitter: any; declare const SegmentedMessage: any; declare const graphemeSplitter: any; declare enum Encoding { 'GSM-7' = 0, 'UCS-2' = 1 } declare const getMessageSegmentInformation: (data: string) => { count: number; encoding: Encoding; nonGSM7Characters: string[]; };