UNPKG

1.02 kBTypeScriptView Raw
1/// <reference types="grecaptcha" />
2import { Observable } from "rxjs";
3import { RecaptchaLoaderOptions } from "./tokens";
4import * as i0 from "@angular/core";
5export declare class RecaptchaLoaderService {
6 private readonly platformId;
7 /**
8 * @internal
9 * @nocollapse
10 */
11 private static ready;
12 ready: Observable<ReCaptchaV2.ReCaptcha>;
13 /** @internal */
14 private language?;
15 /** @internal */
16 private baseUrl?;
17 /** @internal */
18 private nonce?;
19 /** @internal */
20 private v3SiteKey?;
21 /** @internal */
22 private options?;
23 constructor(platformId: Object, language?: string, baseUrl?: string, nonce?: string, v3SiteKey?: string, options?: RecaptchaLoaderOptions);
24 /** @internal */
25 private init;
26 static ɵfac: i0.ɵɵFactoryDeclaration<RecaptchaLoaderService, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
27 static ɵprov: i0.ɵɵInjectableDeclaration<RecaptchaLoaderService>;
28}