/** * Social Authentication Provider Initialization * * Dynamically loads and initializes social auth providers based on configuration. */ import { NAuthConfig, NAuthLogger, SocialAuthService, AuthService, ClientInfoService, AuthAuditService, PhoneVerificationService, BaseUser, ISocialAuthStateStore } from '../../index'; import { JwtService, SessionService, AuthChallengeHelperService, SocialProviderRegistry, TrustedDeviceService } from '../../internal'; import { Repository } from 'typeorm'; import { ISocialAuthProviderService } from '../../interfaces/social-auth-provider.interface'; import { BaseSocialProviderSecret } from '../../entities'; export interface NAuthSocialProviders { googleAuth?: ISocialAuthProviderService; appleAuth?: ISocialAuthProviderService; facebookAuth?: ISocialAuthProviderService; } /** * Initialize and register social authentication providers * * Dynamically imports social provider packages based on configuration. * Each provider is initialized with all required services and registered * with the SocialAuthService registry. * * @param config - NAuth configuration * @param providerRegistry - Social provider registry (internal) * @param authService - Core authentication service * @param socialAuthService - Social authentication service * @param jwtService - JWT token service * @param sessionService - Session management service * @param challengeHelper - Auth challenge helper service * @param clientInfoService - Client information service * @param logger - Logger instance * @param socialAuthStateStore - Shared state store for OAuth CSRF protection * @param phoneVerificationService - Phone verification service (optional) * @param auditService - Audit logging service (optional) * @param trustedDeviceService - Trusted device service (optional) * @param socialProviderSecretRepository - Repository for social provider secrets (optional, for Apple JWT rotation) * @returns Object containing initialized social providers */ export declare function initSocialAuth(config: NAuthConfig, providerRegistry: SocialProviderRegistry, authService: AuthService, socialAuthService: SocialAuthService, jwtService: JwtService, sessionService: SessionService, challengeHelper: AuthChallengeHelperService, clientInfoService: ClientInfoService, logger: NAuthLogger, socialAuthStateStore: ISocialAuthStateStore, userRepository: Repository, phoneVerificationService?: PhoneVerificationService, auditService?: AuthAuditService, trustedDeviceService?: TrustedDeviceService, socialProviderSecretRepository?: Repository | null, hookRegistry?: import('../../services/hook-registry.service').HookRegistryService): Promise; //# sourceMappingURL=init-social.d.ts.map