import { s as signupCore, a as signinCore } from './signin-D81G4lNe.js'; import { l as logoutCore, g as getCurrentUserFromToken, i as isTokenValid } from './session-C-ESV9uK.js'; import { g as generateTwoFactorCode, v as verifyTwoFactorCode, i as initiateEmailVerification, a as initiateSMSVerification, s as sendVerificationEmail, c as sendVerificationSMS, b as getUserTwoFactorCodes, d as cleanupExpiredCodes } from './twoFactor-Dnjt2e0v.js'; import { h as hashPassword, v as verifyPassword, a as verifyAndCheckRehash, b as validatePassword, g as generateSecurePassword, n as needsRehash } from './hash-D54ZxOVU.js'; interface EmailServiceCapabilities { templates?: boolean; headers?: boolean; tracking?: boolean; tags?: boolean; replyTo?: boolean; } /** * Unified Email/SMS Service Registry * Single source of truth shared by core and provider modules. */ interface EmailService { sendVerificationEmail(to: string, code: string, options?: { subject?: string; template?: string; metadata?: any; replyTo?: string; }): Promise; capabilities?: EmailServiceCapabilities; } interface SMSService { sendVerificationSMS(to: string, code: string, options?: { template?: string; metadata?: any; }): Promise; } declare class EmailServiceRegistry { private static emailServices; private static smsServices; private static emailCapabilities; static register(name: string, service: EmailService): void; static get(name: string): EmailService | undefined; static setDefault(name: string): void; static getDefault(): EmailService | undefined; static list(): string[]; static getCapabilities(name: string): EmailServiceCapabilities | undefined; static setCapabilities(name: string, caps: EmailServiceCapabilities): void; static unregister(name: string): boolean; static clear(): void; static status(): { registered: string[]; hasDefault: boolean; capabilities: Record; }; static registerSMS(name: string, service: SMSService): void; static getSMS(name: string): SMSService | undefined; static setDefaultSMS(name: string): void; static getDefaultSMS(): SMSService | undefined; static listSMS(): string[]; static unregisterSMS(name: string): boolean; static clearSMS(): void; } /** * Advanced entrypoint exposing low-level core primitives. * Recommended to migrate imports here instead of using deprecated root *Core exports. */ declare const core: { signup: typeof signupCore; signin: typeof signinCore; logout: typeof logoutCore; getCurrentUserFromToken: typeof getCurrentUserFromToken; isTokenValid: typeof isTokenValid; }; declare const twoFactor: { generateTwoFactorCode: typeof generateTwoFactorCode; verifyTwoFactorCode: typeof verifyTwoFactorCode; initiateEmailVerification: typeof initiateEmailVerification; initiateSMSVerification: typeof initiateSMSVerification; sendVerificationEmail: typeof sendVerificationEmail; sendVerificationSMS: typeof sendVerificationSMS; getUserTwoFactorCodes: typeof getUserTwoFactorCodes; cleanupExpiredCodes: typeof cleanupExpiredCodes; EmailServiceRegistry: typeof EmailServiceRegistry; }; declare const hash: { hashPassword: typeof hashPassword; verifyPassword: typeof verifyPassword; verifyAndCheckRehash: typeof verifyAndCheckRehash; validatePassword: typeof validatePassword; generateSecurePassword: typeof generateSecurePassword; needsRehash: typeof needsRehash; }; export { EmailServiceRegistry, cleanupExpiredCodes, core, generateSecurePassword, generateTwoFactorCode, getCurrentUserFromToken, getUserTwoFactorCodes, hash, hashPassword, initiateEmailVerification, initiateSMSVerification, isTokenValid, logoutCore, needsRehash, sendVerificationEmail, sendVerificationSMS, signinCore, signupCore, twoFactor, validatePassword, verifyAndCheckRehash, verifyPassword, verifyTwoFactorCode };