import type { Uint8Array_ } from "./_types.ts"; export type { Uint8Array_ }; export declare const alphabet: Uint8Array; export declare const rAlphabet: Uint8Array; /** * Calculate the output size needed to encode a given input size for * {@linkcode encodeIntoHex}. * * @param originalSize The size of the input buffer. * @returns The size of the output buffer. * * @example Basic Usage * ```ts * import { assertEquals } from "../assert/mod.ts"; * import { calcSizeHex } from "unstable_hex.ts"; * * assertEquals(calcSizeHex(1), 2); * ``` */ export declare function calcSizeHex(originalSize: number): number; export declare function encode( buffer: Uint8Array_, i: number, o: number, alphabet: Uint8Array, ): number; export declare function decode( buffer: Uint8Array_, i: number, o: number, alphabet: Uint8Array, ): number;