import { Hono } from 'hono';
import type { AppEnv } from '../hono-env.js';
declare const auth: Hono<AppEnv, import("hono/types").BlankSchema, "/">;
/**
 * Core magic link logic — shared by API route and dashboard pages.
 * Upserts user, generates token, sends email (or returns dev_token).
 *
 * @param email - User email
 * @param publicBaseUrl - Public-facing base URL for the magic link (detected from request headers).
 *                        Falls back to env.DASHBOARD_URL if not provided.
 */
export declare function sendMagicLink(email: string, publicBaseUrl?: string): Promise<{
    sent: boolean;
    dev_token?: string;
    error?: string;
}>;
export default auth;
