import type { Uint8Array_ } from "./_types.ts"; export type { Uint8Array_ }; /** * Converts data into a hex-encoded string. * * @param src The data to encode. * * @returns The hex-encoded string. * * @example Usage * ```ts * import { encodeHex } from "hex.ts"; * import { assertEquals } from "../assert/mod.ts"; * * assertEquals(encodeHex("abc"), "616263"); * ``` */ export declare function encodeHex( src: string | Uint8Array | ArrayBuffer, ): string; /** * Decodes the given hex-encoded string. If the input is malformed, an error is * thrown. * * @param src The hex-encoded string to decode. * * @returns The decoded data. * * @example Usage * ```ts * import { decodeHex } from "hex.ts"; * import { assertEquals } from "../assert/mod.ts"; * * assertEquals( * decodeHex("616263"), * new TextEncoder().encode("abc"), * ); * ``` */ export declare function decodeHex(src: string): Uint8Array_;