eros-sdk-react
Version:
eros sdk
29 lines (27 loc) • 1.35 kB
TypeScript
declare const getVersion: () => string;
declare function encodeBase64(input: string): string;
declare function decodeBase64(input: string): string;
declare const isValidEmail: (email: string) => boolean;
declare const isValidUsername: (username: string) => boolean;
declare const deepMerge: (target: any, source: any) => any;
declare function truncateAddress(address: string, startLen?: number, endLen?: number): string;
declare function firstUpperCase(str: string): string;
declare function getAppClientId(): string;
interface NumberFormatterProps {
value: number | string | undefined;
prefix?: string;
suffix?: string;
separator?: boolean;
fixNum?: number;
tFixNum?: number;
intClassName?: string;
decimalClassName?: string;
prefixClassName?: string;
className?: string;
}
declare const NumberFormatter: React.FC<NumberFormatterProps>;
declare function formatAddress(address: string, pre?: number, after?: number): string;
declare const formatDate: (value: any, formatString?: string) => string;
declare const isInTgApp: () => boolean;
declare function bytesToBase64(bytes: Uint8Array): string;
export { NumberFormatter, bytesToBase64, decodeBase64, deepMerge, encodeBase64, firstUpperCase, formatAddress, formatDate, getAppClientId, getVersion, isInTgApp, isValidEmail, isValidUsername, truncateAddress };