import { EnvironmentProviders } from '@angular/core'; import { RecaptchaServiceConfig } from './recaptcha.service'; /** * Provides reCAPTCHA configuration and automatic script preloading. * * **IMPORTANT:** When using with `NAUTH_CLIENT_CONFIG`, you must pass * `provideRecaptcha()` call MUST appear AFTER the `NAUTH_CLIENT_CONFIG` provider. * * Sets up `RECAPTCHA_CONFIG` and `RecaptchaService`. When called without config, * reads from `NAUTH_CLIENT_CONFIG.recaptcha` if available. * * @param config - Optional. reCAPTCHA config (enabled, version, siteKey, action). * If omitted, will attempt to use `NAUTH_CLIENT_CONFIG.recaptcha`. * Pass explicitly when not using NAuth or to override. * @returns Environment providers for reCAPTCHA * * @example With NAUTH_CLIENT_CONFIG (no duplication) * ```typescript * providers: [ * { provide: NAUTH_CLIENT_CONFIG, useValue: { baseUrl: '...', recaptcha: { enabled: true, version: 'enterprise', siteKey: '...', action: 'login' } } }, * provideRecaptcha(), // reads NAUTH_CLIENT_CONFIG.recaptcha at runtime * ] * ``` * * @example Without NAuth (explicit config) * ```typescript * provideRecaptcha({ enabled: true, version: 'v3', siteKey: '...', action: 'login' }) * ``` */ export declare function provideRecaptcha(config?: RecaptchaServiceConfig): EnvironmentProviders;