/** An SMTP reply — one 3-digit code with one or more continuation lines. */ export interface SmtpReply { code: number; lines: string[]; raw: string; } /** Incremental parser for SMTP replies. Feed it chunks via `push()`; it * invokes `onReply` once per complete reply and leaves any trailing * partial line buffered for the next chunk. * * Multi-line replies look like: * 250-size 10240000\r\n * 250-auth login plain\r\n * 250 ok\r\n * (Hyphen after the code means "continuation"; space means "last line".) */ export declare class ReplyParser { private buffer; private lines; private code; private readonly onReply; constructor(onReply: (reply: SmtpReply) => void); push(chunk: string): void; private consumeLine; /** Bytes received but not yet forming a complete line — useful for tests. */ get pending(): string; }