import { TurnstileAction } from "./turnstile.js"; //#region src/utils/turnstile-flow.d.ts declare class BotChallengeUserCancelledError extends Error { constructor(); } declare class BotChallengeExecutionFailedError extends Error { constructor(message?: string, options?: { cause?: unknown; }); } declare function executeTurnstileInvisible(siteKey: string, action: TurnstileAction): Promise; declare function showTurnstileVisibleChallenge(siteKey: string, action: TurnstileAction): Promise; type BotChallengeExecuteParams = { token?: string; phase?: "invisible" | "visible"; unavailable?: true; }; type WithBotChallengeFlowOptions = { visibleSiteKey: string; invisibleSiteKey: string; action: TurnstileAction; execute: (challenge: BotChallengeExecuteParams) => Promise; isChallengeRequired: (result: T) => boolean; }; declare function withBotChallengeFlow(options: WithBotChallengeFlowOptions): Promise; //#endregion export { BotChallengeExecuteParams, BotChallengeExecutionFailedError, BotChallengeUserCancelledError, WithBotChallengeFlowOptions, executeTurnstileInvisible, showTurnstileVisibleChallenge, withBotChallengeFlow }; //# sourceMappingURL=turnstile-flow.d.ts.map