2018-07-31 01:59:52 +03:00
|
|
|
import { Arrayish } from './bytes';
|
2018-07-24 02:21:42 +03: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 14:13:52 +03:00
|
|
|
export declare function toUtf8String(bytes: Arrayish, ignoreErrors?: boolean): string;
|
|
|
|
export declare function formatBytes32String(text: string): string;
|
|
|
|
export declare function parseBytes32String(bytes: Arrayish): string;
|