'use client';

import { default as React } from 'react';
import { RadiusT, SizeT } from '../../../types';
export interface MagicLinkProps {
    /**
     * Component variant
     */
    variant?: 'form' | 'button' | 'card' | 'inline';
    /**
     * Magic link type
     */
    type?: 'sign-in' | 'sign-up' | 'verify-email' | 'password-reset';
    /**
     * Initial email value
     */
    email?: string;
    /**
     * Redirect URL after successful authentication
     */
    redirectUrl?: string;
    /**
     * Organization ID
     */
    organizationId?: string;
    /**
     * Success callback
     */
    onSuccess?: (result: any) => void;
    /**
     * Error callback
     */
    onError?: (error: Error) => void;
    /**
     * Email sent callback
     */
    onEmailSent?: (email: string) => void;
    /**
     * Custom title
     */
    title?: string;
    /**
     * Custom subtitle
     */
    subtitle?: string;
    /**
     * Custom button text
     */
    buttonText?: string;
    /**
     * Whether to show form validation
     */
    showValidation?: boolean;
    /**
     * Whether to show resend functionality
     */
    showResend?: boolean;
    /**
     * Custom className
     */
    className?: string;
    /**
     * Disabled state
     */
    disabled?: boolean;
    /**
     * Size variant
     */
    size?: SizeT;
    radius?: RadiusT;
    /**
     * Card props (for card variant)
     */
    cardProps?: any;
    /**
     * Button props (for button variant)
     */
    buttonProps?: any;
}
export declare function MagicLink({ variant, cardProps, size, radius, ...props }: MagicLinkProps): import("react/jsx-runtime").JSX.Element;
export interface MagicLinkVerificationProps {
    /**
     * Success callback
     */
    onSuccess?: (result: any) => void;
    /**
     * Error callback
     */
    onError?: (error: Error) => void;
    /**
     * Custom loading component
     */
    loadingComponent?: React.ReactNode;
    /**
     * Custom error component
     */
    errorComponent?: React.ComponentType<{
        error: Error;
        retry: () => void;
    }>;
    /**
     * Custom className
     */
    className?: string;
    size?: SizeT;
    radius?: RadiusT;
}
export declare function MagicLinkVerification({ onSuccess, onError, loadingComponent, errorComponent: ErrorComponent, className, size, radius, }: MagicLinkVerificationProps): import("react/jsx-runtime").JSX.Element | null;
export default MagicLink;
//# sourceMappingURL=magic-link.d.ts.map