import type { EmailConfig } from "./credentials.js";
/**
 * Test SMTP connectivity and authentication.
 * Returns null on success, error message on failure.
 */
export declare function testConnection(config: EmailConfig, password: string): Promise<string | null>;
/**
 * Send an email via SMTP.
 */
export declare function sendEmail(config: EmailConfig, password: string, options: {
    to: string;
    subject: string;
    body: string;
    html?: string;
    inReplyTo?: string;
    references?: string;
    headers?: Record<string, string>;
}): Promise<{
    messageId: string;
}>;
//# sourceMappingURL=smtp.d.ts.map