import { SmrtCollection } from '@happyvertical/smrt-core'; import { EmailFolder } from '../models/EmailFolder'; import { EmailFolderSearchFilters } from '../types'; export declare class EmailFolderCollection extends SmrtCollection { static readonly _itemClass: typeof EmailFolder; /** * Get folder by path for an account */ getByPath(accountId: string, path: string): Promise; /** * Get folders by account */ getByAccount(accountId: string): Promise; /** * Get inbox folder for an account */ getInbox(accountId: string): Promise; /** * Get sent folder for an account */ getSent(accountId: string): Promise; /** * Get drafts folder for an account */ getDrafts(accountId: string): Promise; /** * Get trash folder for an account */ getTrash(accountId: string): Promise; /** * Get spam folder for an account */ getSpam(accountId: string): Promise; /** * Get system folders for an account */ getSystemFolders(accountId: string): Promise; /** * Get user-created folders for an account */ getUserFolders(accountId: string): Promise; /** * Get subscribed folders */ getSubscribed(accountId?: string): Promise; /** * Get folders with unread messages */ getWithUnread(accountId?: string): Promise; /** * Search folders with filters */ search(query: string, filters?: EmailFolderSearchFilters): Promise; /** * Refresh counts for all folders in an account */ refreshAllCounts(accountId: string): Promise; /** * Get folder statistics for an account */ getAccountStats(accountId: string): Promise<{ totalFolders: number; totalMessages: number; totalUnread: number; systemFolders: number; userFolders: number; }>; /** * Create standard system folders for an account */ createSystemFolders(accountId: string): Promise; /** * Find all email folders belonging to a specific tenant */ findByTenant(tenantId: string): Promise; /** * Find all global email folders (no tenant). * * EmailFolder is @TenantScoped (CTI, own `email_folders` table). Under an * active tenant context list({ tenantId: null }) throws and unflagged raw SQL * is blocked (#1596); route through the raw helpers. */ findGlobal(): Promise; /** * Find email folders for a tenant including global folders. */ findWithGlobals(tenantId: string): Promise; } //# sourceMappingURL=EmailFolderCollection.d.ts.map