/**
 * Convert an array of numbers into a DataView.
 */
export declare function numbersToDataView(value: number[]): DataView;
/**
 * Convert a DataView into an array of numbers.
 */
export declare function dataViewToNumbers(value: DataView): number[];
/**
 * Convert a string into a DataView.
 */
export declare function textToDataView(value: string): DataView;
/**
 * Convert a DataView into a string.
 */
export declare function dataViewToText(value: DataView): string;
/**
 * Convert a 16 bit UUID into a 128 bit UUID string
 * @param value number, e.g. 0x180d
 * @return string, e.g. '0000180d-0000-1000-8000-00805f9b34fb'
 */
export declare function numberToUUID(value: number): string;
/**
 * Convert a string of hex into a DataView of raw bytes.
 * Note: characters other than [0-9a-fA-F] are ignored
 * @param hex string of values, e.g. "00 01 02" or "000102"
 * @return DataView of raw bytes
 */
export declare function hexStringToDataView(hex: string): DataView;
export declare function dataViewToHexString(value: DataView): string;
export declare function webUUIDToString(uuid: string | number): string;
export declare function mapToObject<V>(map?: Map<string | number, V>): {
    [key: string]: V;
} | undefined;
/**
 * Convert Data or Uint8Array to Uint8Array.
 * @param value DataView, Uint8Array, or undefined
 * @return Uint8Array or undefined
 */
export declare function toUint8Array(value: DataView | Uint8Array | undefined): Uint8Array | undefined;
/**
 * Convert Data, Uint8Array, or string to hex string.
 * @param value DataView, Uint8Array, or undefined
 * @return hex string or undefined
 */
export declare function toHexString(value: DataView | Uint8Array | undefined): string | undefined;
/**
 * Convert a DataView to a DataView backed by an ArrayBuffer.
 * If the DataView is backed by a SharedArrayBuffer, this creates a copy.
 * Otherwise, returns the original DataView.
 * @param value DataView to convert
 * @return DataView backed by ArrayBuffer
 */
export declare function toArrayBufferDataView(value: DataView): DataView & {
    buffer: ArrayBuffer;
};
