import type { AuthInternal } from './types/internal'; export declare class TotpSecret { readonly secretKey: string; private readonly auth; constructor(secretKey: string, auth: AuthInternal); /** * Shared secret key/seed used for enrolling in TOTP MFA and generating OTPs. */ /** * Returns a QR code URL as described in * https://github.com/google/google-authenticator/wiki/Key-Uri-Format * This can be displayed to the user as a QR code to be scanned into a TOTP app like Google Authenticator. * If the optional parameters are unspecified, an accountName of and issuer of are used. * * @param accountName the name of the account/app along with a user identifier. * @param issuer issuer of the TOTP (likely the app name). * @returns A QR code URL string. */ generateQrCodeUrl(accountName?: string, issuer?: string): string; /** * Opens the specified QR Code URL in an OTP authenticator app on the device. * The shared secret key and account name will be populated in the OTP authenticator app. * The URL uses the otpauth:// scheme and will be opened on an app that handles this scheme, * if it exists on the device, possibly opening the ecocystem-specific app store with a generic * query for compatible apps if no app exists on the device. * * @param qrCodeUrl the URL to open in the app, from generateQrCodeUrl */ openInOtpApp(qrCodeUrl: string): string | void; } //# sourceMappingURL=TotpSecret.d.ts.map