export type BinaryChunk = string | Uint8Array; export declare function latin1ToBytes(value: string): Uint8Array; export declare function bytesToLatin1(bytes: Uint8Array): string; export declare function utf8ToBytes(value: string): Uint8Array; export declare class ByteWriter { private chunks; private length; get offset(): number; push(chunk: BinaryChunk): this; pushLine(chunk?: BinaryChunk): this; toBytes(): Uint8Array; reset(): void; } export declare function concatBytes(parts: Uint8Array[]): Uint8Array; export declare function bytesToBase64(bytes: Uint8Array): string; export declare function base64ToBytes(value: string): Uint8Array; export declare function formatNumber(value: number, precision?: number): string;