waitlist-mailer
Version:
Modern, modular TypeScript library for managing waitlists with pluggable storage and mail providers. Supports MongoDB, SQL databases, and custom adapters with zero required dependencies for basic usage.
29 lines (25 loc) • 852 B
TypeScript
import { MailProvider, EmailContext } from '../../types.js';
/**
* Console-based mail provider for waitlist-mailer.
* Perfect for development and testing.
* Outputs email content to console instead of sending.
*/
/**
* Console-based mail provider implementation.
* Outputs emails to console for development and testing.
* No external dependencies required.
*/
declare class ConsoleMailProvider implements MailProvider {
private verbose;
constructor(verbose?: boolean);
/**
* Output a confirmation email to console.
* @param email - Recipient email address
* @param context - Email context
* @returns Always returns true (successful "send")
*/
sendConfirmation(email: string, context: EmailContext): Promise<boolean>;
private buildSubject;
private buildBody;
}
export { ConsoleMailProvider };