UNPKG

@usepoodle/poodle-js

Version:

Poodle JavaScript and TypeScript SDK

22 lines (21 loc) 740 B
import { PoodleClientOptions, SendEmailOptions, SendEmailResponse } from './types'; /** * Main client class for interacting with the Poodle API */ export declare class PoodleClient { private readonly options; private readonly client; /** * Creates a new instance of the Poodle client * @param options Configuration options for the client */ constructor(options: PoodleClientOptions); /** * Sends an email using the Poodle API * @param options Email sending options * @returns A promise that resolves with the send email response * @throws {PoodleError} If the API request fails */ sendEmail(options: SendEmailOptions): Promise<SendEmailResponse>; } export * from './types';