import { TurnstileAction } from "./turnstile.js"; //#region src/utils/turnstile-browser.d.ts type TurnstileWidgetId = string; type TurnstileTheme = "auto" | "light" | "dark"; type TurnstileAppearance = "always" | "execute" | "interaction-only"; type TurnstileExecution = "render" | "execute"; type TurnstileSize = "invisible" | "flexible" | "normal" | "compact"; type TurnstileConfig = { sitekey: string; action: TurnstileAction; theme?: TurnstileTheme; appearance?: TurnstileAppearance; execution?: TurnstileExecution; size?: TurnstileSize; callback: (token: string) => void; "error-callback": (errorCode?: string) => void; "expired-callback": () => void; "timeout-callback"?: () => void; }; type TurnstileApi = { render: (container: HTMLElement, config: TurnstileConfig) => TurnstileWidgetId; execute?: (widgetId: TurnstileWidgetId) => void; remove: (widgetId: TurnstileWidgetId) => void; reset?: (widgetId: TurnstileWidgetId) => void; }; declare function isTurnstileApi(value: unknown): value is TurnstileApi; declare function getTurnstileApi(): TurnstileApi | undefined; declare function loadTurnstileScript(): Promise; //#endregion export { TurnstileApi, TurnstileAppearance, TurnstileConfig, TurnstileExecution, TurnstileSize, TurnstileTheme, TurnstileWidgetId, getTurnstileApi, isTurnstileApi, loadTurnstileScript }; //# sourceMappingURL=turnstile-browser.d.ts.map