UNPKG

go-captcha-svelte

Version:

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

25 lines (24 loc) 907 B
/** * @Author Awen * @Date 2024/06/01 * @Email wengaolng@gmail.com **/ /// <reference types="svelte" /> import type { SlideConfig, SlideData, SlideEvent } from "../types/slide"; import type { Writable } from 'svelte/store'; export declare function useHandler(data: Writable<SlideData> | any, event: Writable<SlideEvent> | any, config: Writable<SlideConfig> | any, clearCbs: () => void): { state: Writable<{ thumbLeft: number; thumbTop?: number | undefined; dragLeft: number; }>; initRefs: (root: HTMLElement, container: HTMLElement, tile: HTMLElement, dragBlock: HTMLElement, dragBar: HTMLElement) => void; unsubscribe: any; dragEvent: (e: Event | any) => void; closeEvent: (e: Event | any) => boolean; refreshEvent: (e: Event | any) => boolean; resetData: () => void; clearData: () => void; close: () => void; refresh: () => void; };