17 lines
416 B
TypeScript
17 lines
416 B
TypeScript
declare module "cryptcha" {
|
|
interface CryptchaInitOptions {
|
|
siteId: string
|
|
target: HTMLElement
|
|
baseUrl?: string
|
|
log?: boolean
|
|
autoSolve?: boolean
|
|
onSolved?: (payload: { solution: string; solutionId: string }) => void
|
|
}
|
|
|
|
export default class Cryptcha {
|
|
constructor(options: CryptchaInitOptions)
|
|
destroy(): void
|
|
reset(): void
|
|
}
|
|
}
|