import * as React from 'react'; import React__default from 'react'; import { R as ROUTING } from '../../index-BT_Jj2MC.js'; export { d as FirstFactor, e as SecondFactor, b as SessionList, c as SessionListItem, S as Step, f as Strategy, a as SupportedStrategy } from '../../step-MsK0UT__.js'; import { F as FormSubmitProps } from '../../submit-gXm55DfO.js'; import 'react/jsx-runtime'; import '@clerk/types'; import '@radix-ui/react-form'; import 'xstate'; import 'type-fest'; type SignInFlowProviderProps = { children: React__default.ReactNode; exampleMode?: boolean; /** * Fallback markup to render while Clerk is loading */ fallback?: React__default.ReactNode; isRootPath: boolean; }; type SignInRootProps = Omit & { /** * The base path for your sign-in route. * Will be automatically inferred in Next.js. * @example `/sign-in` */ path?: string; /** * If you want to render Clerk Elements in e.g. a modal, use the `virtual` routing mode. */ routing?: ROUTING; }; /** * Root component for the sign-in flow. It sets up providers and state management for its children. * Must wrap all sign-in related components. * * @param {string} path - The root path the sign-in flow is mounted at. Will be automatically inferred in Next.js. You can set it to `/sign-in` for example. * @param {React.ReactNode} fallback - Fallback markup to render while Clerk is loading. Default: `null` * @param {string} routing - If you want to render Clerk Elements in e.g. a modal, use the `'virtual'` routing mode. Default: `'path'` * * @example * import * as SignIn from "@clerk/elements/sign-in" * * export default SignInPage = () => ( * * * ) */ declare function SignInRoot({ children, exampleMode, fallback, path: pathProp, routing, }: SignInRootProps): JSX.Element | null; declare const SignInNavigationEventMap: { readonly start: "NAVIGATE.START"; readonly previous: "NAVIGATE.PREVIOUS"; readonly 'choose-strategy': "NAVIGATE.CHOOSE_STRATEGY"; readonly 'forgot-password': "NAVIGATE.FORGOT_PASSWORD"; }; type SignInNavigateElementKey = keyof typeof SignInNavigationEventMap; type SignInNavigateProps = { asChild?: boolean; to: SignInNavigateElementKey; children: React.ReactNode; }; type SignInResendFallbackProps = { resendable: boolean; resendableAfter: number; }; type SignInResendProps = { asChild?: boolean; children: React.ReactNode; /** * A fallback component to render when the resend action is not available. * This can be a React element or a function that receives the `resendableAfter` prop. */ fallback?: React.ReactNode | ((props: SignInResendFallbackProps) => React.ReactNode); }; type SignInActionProps = { asChild?: boolean; } & FormSubmitProps & (({ navigate: SignInNavigateProps['to']; resend?: never; setActiveSession?: never; submit?: never; } & Omit) | { navigate?: never; resend?: never; setActiveSession?: never; submit: true; } | { navigate?: never; resend?: never; setActiveSession: true; submit?: never; } | ({ navigate?: never; resend: true; setActiveSession?: never; submit?: never; } & SignInResendProps)); /** * Perform various actions during the sign-in process. This component is used to navigate between steps, submit the form, or resend a verification codes. * * @param {boolean} [submit] - If `true`, the action will submit the form. * @param {string} [navigate] - The name of the step to navigate to. * @param {boolean} [resend] - If `true`, the action will resend the verification code for the currently active strategy, if applicable. * @param {Function} [fallback] - Only used when `resend` is `true`. If provided, the fallback markup will be rendered before the resend delay has expired. * * @example * Go Back * * @example * Sign In * * @example * Resend */ declare const SignInAction: React.ForwardRefExoticComponent>; type SignInPasskeyProps = { asChild?: boolean; children: React.ReactNode; } & React.DetailedHTMLProps, HTMLButtonElement>; /** * Prompt users to select a passkey from their device in order to sign in. * This component must be used within the . * * @example * Use Passkey instead */ declare const SignInPasskey: React.ForwardRefExoticComponent & React.RefAttributes>; type CaptchaElementProps = Omit, HTMLDivElement>, 'id' | 'children'>; /** * The `` component is used to render the Cloudflare Turnstile widget. It must be used within the `` component. * * If utilizing the `asChild` prop, the component must be a self-closing element or component. Any children passed to the immediate child component of will be ignored. * * @param {boolean} [asChild] - If true, `` will render as its child element, passing along any necessary props. * * @example * * * * * * * @example * * * *