/** * Login Form * * Email/password login form with Identity worker integration. * Emits analytics events and handles loading/error states gracefully. * * Canon: The form disappears; only the action remains. */ interface Props { /** Called when login form is submitted */ onSubmit: (credentials: { email: string; password: string; }) => Promise; /** Called when user clicks "Sign up" link */ onSwitchToSignup?: () => void; /** Called when user clicks "Forgot password" link */ onForgotPassword?: () => void; /** Called when user clicks "Magic link" option */ onSwitchToMagicLink?: () => void; /** External loading state (overrides internal) */ isLoading?: boolean; /** External error message (overrides internal) */ error?: string | null; /** Show magic link option */ showMagicLinkOption?: boolean; /** Show signup link */ showSignupLink?: boolean; } declare const LoginForm: import("svelte").Component; type LoginForm = ReturnType; export default LoginForm;