@0xsequence/connect
Version:
Connect package for Sequence Web SDK
19 lines • 930 B
TypeScript
export declare const isEmailValid: (email: string) => boolean;
export declare const compareAddress: (a: string, b: string) => boolean;
interface FormatDisplayOptions {
disableScientificNotation?: boolean;
disableCompactNotation?: boolean;
significantDigits?: number;
maximumFractionDigits?: number;
}
export declare const formatDisplay: (_val: number | string, options?: FormatDisplayOptions) => string;
export declare const capitalize: (word: string) => string;
export declare const truncateAtMiddle: (text: string, truncateAt: number) => string;
export declare const truncateAtIndex: (text: string, truncateIndex: number) => string;
export declare const formatAddress: (text: string) => string;
export declare const isJSON: (str?: string) => boolean;
export declare const normalizeChainId: (chainId: string | number | bigint | {
chainId: string;
}) => number;
export {};
//# sourceMappingURL=helpers.d.ts.map