import { JSX } from "preact"; import { HankoAuthMode } from "./contexts/AppProvider"; import { CookieSameSite, Hanko } from "@teamhanko/hanko-frontend-sdk"; import { Translations } from "./i18n/translations"; import { SessionTokenLocation } from "@teamhanko/hanko-frontend-sdk/dist/lib/client/HttpClient"; export interface HankoAuthAdditionalProps { prefilledEmail?: string; prefilledUsername?: string; mode?: HankoAuthMode; } export declare interface HankoAuthElementProps extends JSX.HTMLAttributes, HankoAuthAdditionalProps { } export declare interface HankoProfileElementProps extends JSX.HTMLAttributes { } export declare interface HankoEventsElementProps extends JSX.HTMLAttributes { } declare global { namespace JSX { interface IntrinsicElements { "hanko-auth": HankoAuthElementProps; "hanko-login": HankoAuthElementProps; "hanko-registration": HankoAuthElementProps; "hanko-profile": HankoProfileElementProps; "hanko-events": HankoEventsElementProps; } } } declare module "react" { namespace JSX { interface IntrinsicElements { "hanko-auth": HankoAuthElementProps; "hanko-login": HankoAuthElementProps; "hanko-registration": HankoAuthElementProps; "hanko-profile": HankoProfileElementProps; "hanko-events": HankoEventsElementProps; } } } export interface RegisterOptions { shadow?: boolean; injectStyles?: boolean; enablePasskeys?: boolean; hidePasskeyButtonOnLogin?: boolean; translations?: Translations; translationsLocation?: string; fallbackLanguage?: string; storageKey?: string; cookieDomain?: string; cookieSameSite?: CookieSameSite; sessionCheckInterval?: number; sessionTokenLocation?: SessionTokenLocation; } export interface RegisterResult { hanko: Hanko; } export declare const register: (api: string, options?: RegisterOptions) => Promise;