import * as i0 from '@angular/core'; import { InjectionToken, AfterViewInit, OnDestroy, EventEmitter, EnvironmentProviders, ModuleWithProviders } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; import { ControlValueAccessor } from '@angular/forms'; declare const RECAPTCHA_CONFIG: InjectionToken; interface RecaptchaConfig { baseUrl?: string; nonce?: string; siteKey?: string; theme?: ReCaptchaV2.Theme; type?: ReCaptchaV2.Type; size?: ReCaptchaV2.Size; badge?: ReCaptchaV2.Badge; } type NeverUndefined = T extends undefined ? never : T; type RecaptchaErrorParameters = Parameters>; declare class RecaptchaLoader { private readonly _platform; private readonly _rendererFactory; private readonly _config; private readonly _localize; private readonly _localeId; private readonly _document; private readonly _renderer; readonly ready$: BehaviorSubject | null; private readonly _windowLoadFn; constructor(); private createScript; private getUrl; private getQueryParams; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class RecaptchaComponent implements ControlValueAccessor, AfterViewInit, OnDestroy { private readonly _zone; private readonly _platform; private readonly _renderer; private readonly _elementRef; private readonly _loader; private readonly _localizeId; private readonly _config?; id: string; siteKey: string | null; tabIndex: number | null; type: ReCaptchaV2.Type | null; size: ReCaptchaV2.Size | null; theme: ReCaptchaV2.Theme | null; badge: ReCaptchaV2.Badge | null; errorMode: 'handled' | 'default'; grouped: boolean; resolved: EventEmitter; error: EventEmitter<[]>; private _widgetId; private _grecaptcha; private _executeRequested; private _onChange; private _onTouched; private _subscriptions; constructor(); ngAfterViewInit(): void; ngOnDestroy(): void; execute(): void; reset(): void; writeValue(value: string): void; registerOnChange(fn: (value: string) => void): void; registerOnTouched(fn: () => void): void; onResolve(event: string): void; private renderCaptchaElement; private resetCaptchaElement; private initializeProperties; private handleOnLoad; private handleLocaleChanges; private onLocaleChanged; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_grouped: unknown; } declare function provideRecaptchaConfig(config: RecaptchaConfig): EnvironmentProviders; declare class RecaptchaModule { static forRoot(config?: RecaptchaConfig): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { RECAPTCHA_CONFIG, RecaptchaComponent, RecaptchaLoader, RecaptchaModule, provideRecaptchaConfig }; export type { NeverUndefined, RecaptchaConfig, RecaptchaErrorParameters };