/** * Email History Management Utility - TypeScript Implementation * * This module manages email history for testing and verification purposes. * It provides a clean separation of history management from email sending logic. */ interface EmailHistoryEntry { success: boolean; emailData?: any; message: string; timestamp: Date; id?: string; error?: string; [key: string]: any; } declare const emailHistory: EmailHistoryEntry[]; /** * Clear email history for test isolation * * This function provides a clean slate for each test by removing all previously * mocked email records. Essential for test isolation and preventing test * interference when running multiple email-related test suites. */ declare function clearEmailHistory(): number; /** * Get email history for test verification * * This function provides access to all emails that have been "sent" through * the sendEmail function. Returns a copy to prevent accidental modification. */ declare function getEmailHistory(): EmailHistoryEntry[]; /** * Add email to history * * Internal function to add an email to the history tracking. */ declare function addToHistory(emailData: EmailHistoryEntry): void; export { clearEmailHistory, getEmailHistory, addToHistory, emailHistory }; export type { EmailHistoryEntry }; //# sourceMappingURL=emailHistory.d.ts.map