import type { Uint8Array_ } from "./_types.ts"; export type { Uint8Array_ }; /** * Convert data into a base64url-encoded string. * * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5} * * @param data The data to encode. * @returns The base64url-encoded string. * * @example Usage * ```ts * import { encodeBase64Url } from "base64url.ts"; * import { assertEquals } from "../assert/mod.ts"; * * assertEquals(encodeBase64Url("foobar"), "Zm9vYmFy"); * ``` */ export declare function encodeBase64Url( data: ArrayBuffer | Uint8Array | string, ): string; /** * Decodes a given base64url-encoded string. * * @see {@link https://www.rfc-editor.org/rfc/rfc4648.html#section-5} * * @param b64url The base64url-encoded string to decode. * @returns The decoded data. * * @example Usage * ```ts * import { decodeBase64Url } from "base64url.ts"; * import { assertEquals } from "../assert/mod.ts"; * * assertEquals( * decodeBase64Url("Zm9vYmFy"), * new TextEncoder().encode("foobar") * ); * ``` */ export declare function decodeBase64Url(b64url: string): Uint8Array_;