import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core'; import { SiaraShieldLoaderService } from './siara-shield-loader.service'; import * as i0 from "@angular/core"; export interface SiaraShieldInitOptions { /** SiaraShield public key. Use "TEST-CYBERSIARA" for staging/development. */ publicKey: string; /** Loads jQuery before SiaraShield script. Default is true for easier integration. Set to false only if your page already includes jQuery. */ loadJQuery?: boolean; /** * CSP nonce value (without the `'nonce-'` prefix). * If omitted, we attempt to resolve it from existing `script[nonce]` or `meta[name="csp-nonce"]`. */ cspNonce?: string; /** Set true only when actively debugging vendor/runtime internals in browser console. */ allowVendorConsoleLogs?: boolean; } export declare class SiaraShieldComponent implements AfterViewInit { private readonly host; private readonly loader; publicKey: string; loadJQuery: boolean; cspNonce?: string; allowVendorConsoleLogs: boolean; /** * Emits the current `CyberSiaraToken` right after a successful `checkCaptcha()`. */ token: EventEmitter; private initialized; constructor(host: ElementRef, loader: SiaraShieldLoaderService); ngAfterViewInit(): Promise; init(options: SiaraShieldInitOptions): Promise; /** * Detect preloaded jQuery from global object or an existing script tag. */ private isJQueryAlreadyAvailable; private preventDuplicateValidationBootstrap; private waitForCheckCaptchaApi; /** * Calls the global `CheckCaptcha()` from SiaraShield script. * Returns true when captcha is valid; emits token if available. */ checkCaptcha(): boolean; /** * Async-friendly captcha validation to avoid first-click timing issues. * Performs one validation call and waits for token propagation. */ checkCaptchaAsync(options?: { timeoutMs?: number; pollIntervalMs?: number; beforeCheckDelayMs?: number; retryOnFalseMs?: number; falseResultTokenWaitMs?: number; }): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }