import type { CaptchaType, SuccessInfo } from "../captcha/PropsType"; import { CheckPictureRequest, CommonResp, GetPictureRequest, GetPictureResponse } from "../schema"; export declare type CaptchaOption = { /** * 类型 */ type: CaptchaType; onGetCaptcha: (req: GetPictureRequest) => Promise>; onVerify: (req: CheckPictureRequest) => Promise>; }; export declare type SuccessFunc = (data: SuccessInfo) => void; export declare type FailedFunc = (msg: string) => void; export declare function useCaptcha(option: CaptchaOption): ((() => Promise) | undefined)[];