import { Msg91Client } from "./client"; import type { Msg91Config } from "./types"; /** * Create a new MSG91 client instance * * @example * ```typescript * import { createMsg91Client } from 'msg91-js'; * * const msg91 = createMsg91Client({ * authKey: 'your_auth_key_here', * }); * * // Send OTP * const { data, error } = await msg91.smsOtp.send({ * templateId: 'your_template_id', * mobile: '919876543210', * }); * * // Verify OTP * await msg91.smsOtp.verify({ * otp: '123456', * mobile: '919876543210', * }); * * // Send WhatsApp message * await msg91.whatsapp.send({ * integratedNumber: '919876543210', * templateName: 'order_confirmation', * recipients: [{ to: '919876543211' }], * }); * ``` */ export declare function createMsg91Client(config: Msg91Config): Msg91Client; export { Msg91Client } from "./client"; export type { Msg91Config, Msg91RequestOptions } from "./types/config"; export type { Msg91Response, Msg91ErrorResponse } from "./types/common"; export { Msg91Error, Msg91ApiError, Msg91ValidationError, Msg91NetworkError, Msg91RateLimitError, Msg91ConfigError, } from "./errors"; export type { SendOtpParams, SendOtpResponse, VerifyOtpParams, VerifyOtpResponse, ResendOtpParams, ResendOtpResponse, } from "./services/sms-otp"; export type { SendWhatsAppMessageParams, SendWhatsAppMessageResponse, WhatsAppMessageRequest, TemplateComponents, } from "./services/whatsapp"; export default createMsg91Client; //# sourceMappingURL=index.d.ts.map