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