/** 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; /** Picks keys from an object. Returns a new object containing only the given keys. */ export declare function pick(obj?: Record, ...keys: string[]): Partial; 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}`; export * from '@scure/base'; export * from '@noble/hashes/sha256'; export * as bip32 from '@scure/bip32'; export * as bip39 from '@scure/bip39'; export { wordlist as bip39EN } from '@scure/bip39/wordlists/english'; //# sourceMappingURL=4mat.browser.d.ts.map