UNPKG

go-captcha-jslib

Version:

GoCaptcha for Javascript, which implements click mode, slider mode, drag-drop mode and rotation mode.

14 lines (13 loc) 578 B
import { SlideData, SlideEvent, SlideConfig } from "./types"; export interface handlerType { state: {} | any; updateData: (d: SlideData) => void; dragEvent: (e: Event) => void; closeEvent: (e: Event) => void; refreshEvent: (e: Event) => void; resetData: () => void; clearData: () => void; refresh: () => void; close: () => void; } export declare function useHandler(data: SlideData, event: SlideEvent, config: SlideConfig, rootRef: any, containerRef: any, tileRef: any, dragBlockRef: any, dragBarRef: any, clearCbs: () => void): handlerType;