import { PasslockError, type Email, type PasslockProps, type Principal, type VerifyEmail } from '@passlock/client'; import type { SuperForm } from 'sveltekit-superforms'; import { getLocalEmail, saveEmailLocally, type ResendEmail, type VerifyEmailData } from '../index.js'; export type RegistrationData = { email: string; givenName?: string; familyName?: string; token?: string; authType: 'apple' | 'google' | 'email' | 'passkey'; verifyEmail?: 'link' | 'code'; }; export type LoginData = { email?: string; token?: string; authType: 'apple' | 'google' | 'email' | 'passkey'; }; export type SuperformData> = { cancel: () => void; formData: FormData; form: SuperForm; verifyEmail?: VerifyEmail; }; export declare class Passlock { private readonly passlock; constructor(config: PasslockProps); readonly preConnect: () => Promise; readonly isPasskeySupport: () => Promise; readonly isExistingUser: (email: Email, options?: any) => Promise; readonly register: (options: SuperformData) => Promise; readonly login: (options: SuperformData) => Promise; readonly verifyEmail: (options: SuperformData) => Promise; readonly autoVerifyEmail: (form: SuperForm) => Promise; readonly resendEmail: (options: ResendEmail) => Promise; } export declare const updateForm: >(form: SuperForm, onComplete?: () => Promise) => (event: CustomEvent) => void; export { getLocalEmail, saveEmailLocally }; export { ErrorCode, PasslockError, type Email, type Options, type PasslockProps, type Principal, type VerifyEmail } from '@passlock/client';