import type { Uint8Array_ } from "./_types.js"; 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 "@std/encoding/base32"; * import { assertEquals } from "@std/assert"; * * 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 "@std/encoding/base32"; * import { assertEquals } from "@std/assert"; * * assertEquals( * decodeBase32("GZRTMMDDGA======"), * new TextEncoder().encode("6c60c0"), * ); * ``` */ export declare function decodeBase32(b32: string): Uint8Array_; //# sourceMappingURL=base32.d.ts.map