import type { TwinStream } from './twin-fetch.js'; /** One mail, from its sender to its recipients: the sender's own message bytes, or a vendor's HTML mail the kernel * composes (GoTrue's links). */ export type Mail = { from: string; to: string[]; } & ({ raw: Uint8Array | string; } | { senderName?: string; subject: string; html: string; headers?: Record; }); /** One recipient's answer: the receiving server's reply to its `RCPT`, or to the message when it accepted the * recipient; or the kernel's own refusal when no server receives the recipient's domain. */ export type MailReply = { to: string; code: number; reply: string; }; /** A mail server this process answers itself (a journey walk's companion over the walk's own World): its SMTP side * port's byte-stream door (`createTwinStream`), for the domains `receives` names (its host rules). */ type InProcessMailServer = { vendor: string; receives: (domain: string) => boolean; stream: TwinStream; }; /** The mail servers this process answers itself, consulted before the instance's; returns those set before, which the * caller puts back. */ export declare function setInProcessMailServers(servers: ReadonlyArray): ReadonlyArray; /** Hand one mail to each recipient's mailbox provider; every recipient's reply, in the order given. */ export declare function sendMail(mail: Mail): Promise; export {};