import { BaseResource } from './BaseResource.js'; import type { RequestOptions } from '../types/common.js'; import type { EmailTemplate, EmailTemplateCreateParams, EmailTemplateUpdateParams, EmailTemplateListParams, EmailTemplateTestParams, EmailTemplateTypeInfo } from '../types/emailTemplates.js'; export declare class EmailTemplates extends BaseResource { /** * List all email templates for a store. * * @example * const templates = await tagada.emailTemplates.list({ storeId: 'store_xxx' }); */ list(params: EmailTemplateListParams, opts?: RequestOptions): Promise; /** * Create a new email template. * * @example * const template = await tagada.emailTemplates.create({ * storeId: 'store_xxx', * type: 'order_paid', * name: 'Order Confirmation', * subject: { en: 'Your order #{{orderNumber}} is confirmed!' }, * active: true, * }); */ create(params: EmailTemplateCreateParams, opts?: RequestOptions): Promise; /** * Update an existing email template. * * @example * await tagada.emailTemplates.update('et_xxx', { * subject: { en: 'Updated subject line' }, * active: false, * }); */ update(id: string, data: EmailTemplateUpdateParams, opts?: RequestOptions): Promise; /** * Delete an email template. * * @example * await tagada.emailTemplates.del('et_xxx', 'store_xxx'); */ del(id: string, storeId: string, opts?: RequestOptions): Promise<{ success: boolean; }>; /** * Send a test email using a template. * * @example * await tagada.emailTemplates.test({ * templateId: 'et_xxx', * to: 'test@example.com', * locale: 'en', * }); */ test(params: EmailTemplateTestParams, opts?: RequestOptions): Promise<{ success: boolean; }>; /** * List all available email template types with labels and descriptions. * * @example * const types = await tagada.emailTemplates.listTypes(); * // [{ type: 'order_paid', label: 'Order Paid', description: '...' }, ...] */ listTypes(opts?: RequestOptions): Promise; } //# sourceMappingURL=EmailTemplates.d.ts.map