#!/usr/bin/env bun
/**
 * Deploy IMAP-to-S3 bridge server to EC2 via SSM
 * Embeds all code directly in SSM commands to avoid S3 permission issues
 *
 * Security:
 * - Uses EC2 instance IAM role for AWS credentials (no hardcoded keys)
 * - Fetches IMAP passwords from AWS Secrets Manager at startup
 * - Secret name: stacks/mail-server/credentials
 * - Credentials are read from email config and synced to Secrets Manager
 */
export interface MailboxConfig {
    email: string;
    password?: string;
}
export interface MailServerDeployConfig {
    instanceId: string;
    region: string;
    secretName: string;
    domain: string;
    bucket: string;
    prefix: string;
    /** Mailboxes can be simple strings or objects with optional passwords */
    mailboxes: Array<string | MailboxConfig>;
}
export declare function deployImapServer(config?: MailServerDeployConfig): Promise<void>;
