Files
kontextwerk/types/cryptcha/index.d.ts
2025-10-02 09:03:39 +00:00

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
}
}