UNPKG

go-captcha-jslib

Version:

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

14 lines (13 loc) 583 B
import { SlideRegionData, SlideRegionEvent, SlideRegionConfig } from "./types"; export interface handlerType { state: {} | any; updateData: (d: SlideRegionData) => 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: SlideRegionData, event: SlideRegionEvent, config: SlideRegionConfig, rootRef: any, containerRef: any, tileRef: any, clearCbs: () => any): handlerType;