import WebauthnWebJS from "supertokens-web-js/lib/build/recipe/webauthn"; import PasskeyIcon from "../../components/assets/passkeyIcon"; import AuthRecipe from "../authRecipe"; import type { GetRedirectionURLContext, NormalisedConfig, OnHandleEventContext, PreAndPostAPIHookAction, UserInput, } from "./types"; import type { NormalisedConfigWithAppInfoAndRecipeID, WebJSRecipeInterface, RecipeInitResult } from "../../types"; export declare const webauthnFactor: { id: "webauthn"; name: string; description: string; path: string; logo: typeof PasskeyIcon; }; export default class Webauthn extends AuthRecipe< GetRedirectionURLContext, PreAndPostAPIHookAction, OnHandleEventContext, NormalisedConfig > { readonly webJSRecipe: WebJSRecipeInterface; static instance?: Webauthn; static RECIPE_ID: "webauthn"; recipeID: string; firstFactorIds: "webauthn"[]; constructor( config: NormalisedConfigWithAppInfoAndRecipeID, webJSRecipe?: WebJSRecipeInterface ); getFirstFactorsForAuthPage(): string[]; getDefaultRedirectionURL: (context: GetRedirectionURLContext) => Promise; static init( config?: UserInput ): RecipeInitResult; static getInstanceOrThrow(): Webauthn; static reset(): void; }