import type { FormField, FormNotificationSettings } from './types.js';
export interface SubmissionEmailContext {
    formId: string;
    formName: string;
    entryNumber: number | null;
    submittedAt: string;
    /** Schema fields (for labels + sensitivity classification). */
    fields: FormField[];
    /** Sanitized submission values keyed by field key. */
    data: Record<string, unknown>;
    senderName?: string | null;
    senderEmail?: string | null;
}
export interface NotificationDispatchResult {
    notified: number;
    autoresponded: boolean;
    skippedReason?: string;
}
/** Build the admin notification email (subject/html/text) for a submission. */
export declare function buildNotificationEmail(settings: FormNotificationSettings, ctx: SubmissionEmailContext): {
    subject: string;
    html: string;
    text: string;
};
/** Build the submitter autoresponder email. */
export declare function buildAutoresponderEmail(settings: FormNotificationSettings, ctx: SubmissionEmailContext): {
    subject: string;
    html: string;
    text: string;
};
/**
 * Send admin notifications + autoresponder for a submission. Best-effort: logs
 * and swallows per-recipient failures so one bad address can't block the rest
 * or surface to the public submitter.
 */
export declare function sendFormNotifications(settings: FormNotificationSettings | undefined, ctx: SubmissionEmailContext): Promise<NotificationDispatchResult>;
//# sourceMappingURL=notify.d.ts.map