import { BaseCaptchaOptions, CaptchaInstance } from '../types'; export declare abstract class BaseCaptcha implements CaptchaInstance { protected container: HTMLElement; protected options: BaseCaptchaOptions; protected token: string | null; protected isVerified: boolean; constructor(options: BaseCaptchaOptions); protected abstract init(): void; abstract drawCaptcha(): void; abstract verify(input?: string | number): boolean; refresh(): void; getToken(): string | null; destroy(): void; /** * 生成随机令牌 */ protected generateToken(): string; /** * 触发成功事件 */ protected triggerSuccess(): void; /** * 触发失败事件 */ protected triggerFail(): void; }