import type { CreateTemplateInput, ListTemplatesQuery, Paginated, Template, TemplateSyncResult, UpdateTemplateInput } from '../../types'; import type { HttpClient } from '../../http'; /** * WhatsApp message templates, per channel. * * A template is local until it is submitted to Meta: create it as a `draft`, * or pass `applyForApproval: true` to send it straight on, at which point it * becomes `pending` and Meta decides. `sync` pulls Meta's current view back * over ours, which is how approvals and rejections arrive without waiting on a * webhook. * * Every method takes the channel id first; a template id belonging to another * channel is a 404 rather than a match. */ export declare class Templates { private readonly http; constructor(http: HttpClient); /** * `GET /v1/channels/:channelId/templates` -- offset paginated. `search` * matches the template name and sub-category; `status`, `category`, * `parameterFormat` and `language` are quick filters. * * Scope: `channels:read`. */ list(channelId: string, query?: Partial): Promise>; /** * `GET /v1/channels/:channelId/templates/:id`. * * Scope: `channels:read`. */ get(channelId: string, id: string): Promise