import type { Uint8Array_ } from "./_types.ts"; export type { Uint8Array_ }; /** * Converts data into a base32-encoded string. * * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6} * * @param data The data to encode. * @returns The base32-encoded string. * * @example Usage * ```ts * import { encodeBase32 } from "base32.ts"; * import { assertEquals } from "../assert/mod.ts"; * * assertEquals(encodeBase32("6c60c0"), "GZRTMMDDGA======"); * ``` */ export declare function encodeBase32( data: ArrayBuffer | Uint8Array | string, ): string; /** * Decodes a base32-encoded string. * * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-6} * * @param b32 The base32-encoded string to decode. * @returns The decoded data. * * @example Usage * ```ts * import { decodeBase32 } from "base32.ts"; * import { assertEquals } from "../assert/mod.ts"; * * assertEquals( * decodeBase32("GZRTMMDDGA======"), * new TextEncoder().encode("6c60c0"), * ); * ``` */ export declare function decodeBase32(b32: string): Uint8Array_;