import type { IUnifiedEmailServerOptions } from '@push.rocks/smartmta';
import type { IDcRouterOptions } from '../classes.dcrouter.js';
import type { IEmailPortConfig, IEmailServerSettings, TEmailServerSettingsUpdate } from '../../dist_ts_interfaces/data/email-settings.js';
export declare class EmailSettingsManager {
    private options;
    private cachedEmailConfig?;
    private cachedEmailPortConfig?;
    private enabled;
    private updatedAt;
    private updatedBy;
    constructor(options: IDcRouterOptions);
    start(): Promise<void>;
    stop(): Promise<void>;
    isEnabled(): boolean;
    getEmailConfig(): IUnifiedEmailServerOptions | undefined;
    getEmailPortConfig(): IEmailPortConfig | undefined;
    getPublicSettings(): IEmailServerSettings;
    updateSettings(updates: TEmailServerSettingsUpdate, updatedBy: string): Promise<IEmailServerSettings>;
    private loadFromDoc;
    private applyToRuntimeOptions;
    private patchEmailConfig;
    private patchEmailPortConfig;
    private normalizePorts;
    private normalizePortMapping;
}
