import { ComponentType } from 'react'; /** Props passed to the consumer's `render` component. */ export type CaptchaRenderProps = { /** Call once the user solves the captcha. */ setToken: (token: string) => void; /** Call on error/expire to clear the token. */ clearToken: () => void; /** * Register your widget's `reset()`. Forms call it after a failed * submission since captcha tokens are single-use. Pass `null` on unmount. */ setReset: (reset: (() => void) | null) => void; }; export type CaptchaPluginOptions = { /** Renders the captcha widget. Wire `setToken`, `clearToken`, `setReset`. */ render: ComponentType; }; /** * Provider-agnostic captcha plugin. Forwards the resolved token via the * `x-captcha-response` header on Better Auth requests. */ export declare const captchaPlugin: ((args_0: CaptchaPluginOptions) => { render: ComponentType; captchaComponent: import("react").JSX.Element; } & { id: "captcha"; }) & { id: "captcha"; };