UNPKG

viem

Version:

TypeScript Interface for Ethereum

11 lines 712 B
import type { ErrorType } from '../../errors/utils.js'; import type { ByteArray, Hex } from '../../types/misc.js'; import { type IsHexErrorType } from '../data/isHex.js'; import { type ToBytesErrorType } from '../encoding/toBytes.js'; import { type ToHexErrorType } from '../encoding/toHex.js'; type To = 'hex' | 'bytes'; export type Ripemd160Hash<to extends To> = (to extends 'bytes' ? ByteArray : never) | (to extends 'hex' ? Hex : never); export type Ripemd160ErrorType = IsHexErrorType | ToBytesErrorType | ToHexErrorType | ErrorType; export declare function ripemd160<to extends To = 'hex'>(value: Hex | ByteArray, to_?: to | undefined): Ripemd160Hash<to>; export {}; //# sourceMappingURL=ripemd160.d.ts.map