import { ClientParams, SendMailParams, SendTemplateMailParams } from '../types'; import fetch from 'node-fetch'; declare class Client { debug: any; commonURL: string; errorText: string; token: string; clientOption: any; isUrl: string | boolean; domain?: string; defaultOption: { host: string; isUrlAPI: boolean | string; useHttps: boolean; authHeader: string; }; constructor({ token, url, debug, domain }: ClientParams, clientOptions: any); getUrl(url: string): string; getHeader(): { [key: string]: string | string[]; }; status(resp: { ok: boolean; json: () => any; }): Promise<{ ok: boolean; json: () => any; }>; toJSON(resp: { json: () => any; }): any; validate({ options }: SendMailParams | SendTemplateMailParams): boolean; validateMail({ options }: SendMailParams): boolean; validateTemplate({ options }: SendTemplateMailParams): boolean; resultWithBody(method: string, query: { options: any; isTemplate?: boolean; }, url: string): Promise; httpRequest(fetched: Promise): Promise; } export { Client };