/** * Encodes the provided ArrayBuffer or string to base64url format (RFC 4648 §5). * Safe for use in URLs: uses - and _ instead of + and /, and omits padding. * Use this when the result will appear in query params or path segments (e.g. PKCE code_challenge). * * @param input String or ArrayBuffer to encode * @returns base64url-encoded string (no +, /, or trailing =) */ export declare const base64UrlEncode: (input: string | ArrayBuffer) => string; /** * Decodes a base64url string (RFC 4648 §5) to a UTF-8 string. * Use this when decoding values that may have been encoded as base64url for URLs * (e.g. OAuth state in callback URLs). Standard atob() will throw on base64url * because it uses - and _ and omits padding. * * @param base64url - base64url-encoded string (e.g. from a callback URL param) * @returns decoded string (UTF-8) * @see https://www.rfc-editor.org/rfc/rfc4648#section-5 */ export declare const base64UrlDecode: (base64url: string) => string;