2018-07-30 18:59:52 -04:00
|
|
|
import { Arrayish } from './bytes';
|
2018-07-23 19:21:42 -04:00
|
|
|
export declare enum UnicodeNormalizationForm {
|
|
|
|
current = "",
|
|
|
|
NFC = "NFC",
|
|
|
|
NFD = "NFD",
|
|
|
|
NFKC = "NFKC",
|
|
|
|
NFKD = "NFKD"
|
|
|
|
}
|
|
|
|
export declare function toUtf8Bytes(str: string, form?: UnicodeNormalizationForm): Uint8Array;
|
2018-08-21 13:13:52 +02:00
|
|
|
export declare function toUtf8String(bytes: Arrayish, ignoreErrors?: boolean): string;
|
|
|
|
export declare function formatBytes32String(text: string): string;
|
|
|
|
export declare function parseBytes32String(bytes: Arrayish): string;
|