import Case from 'case'; export { Case }; export * from '@hackbg/dump'; export * from '@scure/base'; export { sha256 as SHA256 } from '@noble/hashes/sha256'; export { ripemd160 as RIPEMD160 } from '@noble/hashes/ripemd160'; export { ed25519 as Ed25519 } from '@noble/curves/ed25519'; export { secp256k1 as Secp256k1 } from '@noble/curves/secp256k1'; export { numberToBytesBE, numberToBytesLE } from '@noble/curves/abstract/utils'; export * as Bip32 from '@scure/bip32'; export * as Bip39 from '@scure/bip39'; export { wordlist as Bip39EN } from '@scure/bip39/wordlists/english'; export declare const utf8: { encode(str: string): Uint8Array; decode(data: Uint8Array): string; }; /** Returns Uint8Array of given length. */ export declare const randomBytes: (n?: number) => Uint8Array; /** Returns a hex-encoded string of given length. * Default is 16 bytes, i.e. 128 bits of entropy. */ export declare const randomBase16: (n?: number) => string; /** Returns a base64-encoded string of given length. * Default is 64 bytes, i.e. 512 bits of entropy. */ export declare const randomBase64: (n?: number) => string; /** Returns a random valid bech32 address. * Default length is 32 bytes (canonical addr in Cosmos) */ export declare const randomBech32: (prefix?: string, n?: number) => `${Lowercase}1${string}`; /** Returns a random valid bech32m address. */ export declare const randomBech32m: (prefix?: string, n?: number) => `${Lowercase}1${string}`; /** Returns a function that throws when called. * Use to give more helpful errors when an expected value is missing. * use as: `const foo = context.foo || required('value of foo')` * or: `const foo = context.foo ?? required('value of foo')` */ export declare const required: (label: string) => () => never; /** Pick a random item from a set. */ export declare const pickRandom: (set: Set) => T; /** Pick keys from an object. Returns a new object containing only the given keys. */ export declare function pick(obj?: Record, ...keys: string[]): Partial; /** Assign properties from an allowlist to an object. * - safe, can't set unsupported properties * - no need to state property name thrice * - doesn't leave `undefined`s */ export declare function assign(object: T, properties: Partial & any, allowed: Array | Set): void; /** Assign properties from an allowlist to an object, converting to camelCase */ export declare function assignCamelCase(object: T, properties: Partial & any, allowed: Array | Set): void; //# sourceMappingURL=4mat.browser.d.ts.map