ethers.js/packages/strings/index.d.ts
2019-05-14 18:48:48 -04:00

13 lines
508 B
TypeScript

import { BytesLike } from "@ethersproject/bytes";
export declare enum UnicodeNormalizationForm {
current = "",
NFC = "NFC",
NFD = "NFD",
NFKC = "NFKC",
NFKD = "NFKD"
}
export declare function toUtf8Bytes(str: string, form?: UnicodeNormalizationForm): Uint8Array;
export declare function toUtf8String(bytes: BytesLike, ignoreErrors?: boolean): string;
export declare function formatBytes32String(text: string): string;
export declare function parseBytes32String(bytes: BytesLike): string;