import { Base32Plugin } from '@otplib/core'; export { CreateBase32PluginOptions, createBase32Plugin } from '@otplib/core'; /** * UTF-8 string bypass - treats secrets as plain text * * Use this when your secret is a plain text string that should be * converted directly to bytes without Base32 encoding. * * @example * ```ts * import { bypassAsString } from '@otplib/plugin-base32-alt'; * import { generate } from '@otplib/totp'; * * await generate({ secret: "mysecretkey", base32: bypassAsString, crypto }); * ``` */ declare const bypassAsString: Base32Plugin; /** * Hex string bypass - treats secrets as hex-encoded strings * * Use this when your secret is a hex string that should be * converted directly to bytes without Base32 encoding. * * @example * ```ts * import { bypassAsHex } from '@otplib/plugin-base32-alt'; * import { generate } from '@otplib/totp'; * * await generate({ secret: "48656c6c6f", base32: bypassAsHex, crypto }); * ``` */ declare const bypassAsHex: Base32Plugin; /** * Alias for bypassAsHex - base16 is the formal name for hex encoding */ declare const bypassAsBase16: Base32Plugin; /** * Base64 string bypass - treats secrets as base64-encoded strings * * Use this when your secret is a base64 string that should be * converted directly to bytes without Base32 encoding. * * @example * ```ts * import { bypassAsBase64 } from '@otplib/plugin-base32-alt'; * import { generate } from '@otplib/totp'; * * await generate({ secret: "SGVsbG8=", base32: bypassAsBase64, crypto }); * ``` */ declare const bypassAsBase64: Base32Plugin; export { bypassAsBase16, bypassAsBase64, bypassAsHex, bypassAsString };