@metamask/design-system-react-native
Version:
31 lines • 1.16 kB
text/typescript
/**
* SDBM hash function
*
* @param str The string to hash
* @returns A numeric hash value
*/
export declare function sdbmHash(str: string): number;
/**
* Convert numeric/byte-array seed to a 6+ length string
*
* @param seed The seed value to convert (either a number or array of numbers)
* @returns A string representation of the seed (minimum 6 characters)
*/
export declare function seedToString(seed: number | number[]): string;
/**
* Builds a full <svg> string containing the Maskicon shapes.
*
* @param seed The seed value used to generate the icon
* @param size The size of the SVG icon in pixels
* @returns An SVG string representing the Maskicon
*/
export declare function createMaskiconSVG(seed: number | number[], size?: number): string;
/**
* Returns a Promise that resolves to the final <svg> string for the given address.
*
* @param address The address to generate the Maskicon for
* @param size The size of the icon in pixels
* @returns A promise that resolves to an SVG string
*/
export declare function getMaskiconSVG(address: string, size: number): Promise<string>;
//# sourceMappingURL=Maskicon.utilities.d.mts.map