/** * Get Email Delivery Reports via Infobip Service * Retrieves delivery reports for sent emails * * @see https://www.infobip.com/docs/api/channels/email/get-email-delivery-reports */ import type { ServiceOptions } from '@plyaz/types/api'; import type { EndpointsList } from '@/api/endpoints'; import type { FetchResponse } from 'fetchff'; import type { InfobipGetEmailReportsParams } from '@plyaz/types/api'; /** * Get email delivery reports from Infobip * Uses endpoint: GET /email/4/reports * * @param params - Query parameters for filtering reports * @param options - Optional service options (client override, config overrides) * @returns Promise * * @example * ```typescript * // Get all reports (limited by default limit) * const reports = await fetchInfobipEmailReports(); * * // Get reports for specific bulk * const reports = await fetchInfobipEmailReports({ * bulkId: 'bulk-123', * limit: 100, * }); * * // Get report for specific message * const reports = await fetchInfobipEmailReports({ * messageId: 'msg-456', * }); * * // With custom caching * const reports = await fetchInfobipEmailReports(params, { * apiConfig: { cacheTime: 60 }, // Cache for 1 minute * }); * ``` * * @throws {ApiPackageError} When the request fails */ export declare function fetchInfobipEmailReports(params?: InfobipGetEmailReportsParams, options?: ServiceOptions): Promise; //# sourceMappingURL=fetchEmailReports.d.ts.map