import { APIResource } from "../core/resource.mjs"; import { APIPromise } from "../core/api-promise.mjs"; import { RequestOptions } from "../internal/request-options.mjs"; export declare class MessageStats extends APIResource { /** * Get message statistics within a specified date range and export in requested * format (CSV or XLSX). */ retrieve(params?: MessageStatRetrieveParams | null | undefined, options?: RequestOptions): APIPromise; } export type MessageStatRetrieveResponse = unknown; export interface MessageStatRetrieveParams { /** * Query param: End date in ISO format (YYYY-MM-DD). Defaults to today. */ end_date?: string; /** * Query param: Export format ['xlsx', 'csv'] */ export_format?: string; /** * Query param: Start date in ISO format (YYYY-MM-DD). Defaults to 30 days ago. */ start_date?: string; /** * Header param */ 'Accept-Language'?: string; /** * Header param: Set to `structured` to receive errors in the structured envelope. * Omit it to keep the legacy error body. */ 'X-Error-Format'?: string; } export declare namespace MessageStats { export { type MessageStatRetrieveResponse as MessageStatRetrieveResponse, type MessageStatRetrieveParams as MessageStatRetrieveParams, }; } //# sourceMappingURL=message-stats.d.mts.map