start the path to rust

This commit is contained in:
2026-02-10 15:54:09 +00:00
parent 237dba3bab
commit 8bd8c295b0
318 changed files with 28352 additions and 428 deletions

41
dist_ts/errors/index.d.ts vendored Normal file
View File

@@ -0,0 +1,41 @@
/**
* MTA error classes for SMTP client operations
*/
export declare class MtaConnectionError extends Error {
code: string;
details?: any;
constructor(message: string, detailsOrCode?: any);
static timeout(host: string, port: number, timeoutMs?: number): MtaConnectionError;
static refused(host: string, port: number): MtaConnectionError;
static dnsError(host: string, err?: any): MtaConnectionError;
}
export declare class MtaAuthenticationError extends Error {
code: string;
details?: any;
constructor(message: string, detailsOrCode?: any);
static invalidCredentials(host?: string, user?: string): MtaAuthenticationError;
}
export declare class MtaDeliveryError extends Error {
code: string;
responseCode?: number;
details?: any;
constructor(message: string, detailsOrCode?: any, responseCode?: number);
static temporary(message: string, ...args: any[]): MtaDeliveryError;
static permanent(message: string, ...args: any[]): MtaDeliveryError;
}
export declare class MtaConfigurationError extends Error {
code: string;
details?: any;
constructor(message: string, detailsOrCode?: any);
}
export declare class MtaTimeoutError extends Error {
code: string;
details?: any;
constructor(message: string, detailsOrCode?: any);
static commandTimeout(command: string, hostOrTimeout?: any, timeoutMs?: number): MtaTimeoutError;
}
export declare class MtaProtocolError extends Error {
code: string;
details?: any;
constructor(message: string, detailsOrCode?: any);
}