import type { SvelteComponent } from "svelte"; import type { CaptchaProps, CaptchaComponentMethods } from "../../index.js"; import type { CaptchaState } from "@better-captcha/core"; import type { FriendlyCaptchaHandle, RenderParameters } from "@better-captcha/core/providers/friendly-captcha"; type FriendlyCaptchaProps = Omit, string, FriendlyCaptchaHandle>, "sitekey" | "endpoint"> & { sitekey: string }; declare class FriendlyCaptcha extends SvelteComponent implements CaptchaComponentMethods { execute(): Promise; reset(): void; destroy(): void; getResponse(): ReturnType | undefined; getComponentState(): CaptchaState; render(): Promise; } export default FriendlyCaptcha; export type { FriendlyCaptchaHandle, RenderParameters };