import { Buffer } from 'buffer'; export declare function fromUtf8(str: string): Uint8Array; export declare function toUtf8(bytes: Uint8Array): string; export declare function fromBase64(str: string): Uint8Array; export declare function toBase64(bytes: Uint8Array): string; export declare function fromHex(str: string): Uint8Array; export declare function toHex(bytes: Uint8Array, trimmed?: boolean): string; export declare function toPrefixedHex(bytes: Uint8Array, trimmed?: boolean): string; export declare function toBigInt(bytes: Uint8Array): bigint; export declare function fromBigInt(i: bigint): Uint8Array; export declare function toNumber(bytes: Uint8Array): number; export declare function fromNumber(i: number): Uint8Array; export declare function fromAscii(str: string): Uint8Array; export declare function toAscii(bytes: Uint8Array): string; export declare function fromBuffer(buffer: Buffer): Uint8Array; export declare function toBuffer(bytes: Uint8Array): Buffer;