import { ApiListPromise, FileData, FileBuffer } from '@sinch/sdk-client'; import { FaxDomainApi } from '../fax-domain-api'; import { Fax, DeleteFaxContentRequestData, DownloadFaxContentRequestData, ExportListFaxesRequestData, GetFaxRequestData, ListFaxesRequestData, SendFaxRequestData } from '../../../models'; import { LazyFaxApiClient } from '../fax-service'; export declare class FaxesApi extends FaxDomainApi { /** @internal */ constructor(lazyClient: LazyFaxApiClient); /** * Delete fax content * Delete the fax content for a fax using the ID number of the fax. Please note that this only deletes the content of the fax from storage. * @param { DeleteFaxContentRequestData } data - The data to provide to the API call. */ deleteContent(data: DeleteFaxContentRequestData): Promise; /** * Download fax content * Download the fax content. * @param { DownloadFaxContentRequestData } data - The data to provide to the API call. */ downloadContent(data: DownloadFaxContentRequestData): Promise; /** * Get fax * Get fax information using the ID number of the fax. * @param { GetFaxRequestData } data - The data to provide to the API call. */ get(data: GetFaxRequestData): Promise; /** * List faxes * List faxes sent (OUTBOUND) or received (INBOUND), set parameters to filter the list. Example: Return calls made between 1st of January 2021 and 10th of January 2021. ``` created>=2021-01-01&startTime<=2021-01-10 ``` * @param { ListFaxesRequestData } data - The data to provide to the API call. * @return {ApiListPromise} */ list(data?: ListFaxesRequestData): ApiListPromise; /** * Export faxes * Export faxes sent (OUTBOUND) or received (INBOUND). Sets parameters to filter the export. * @param { ExportListFaxesRequestData } data - The data to provide to the API call. */ exportList(data?: ExportListFaxesRequestData): Promise; /** * Send a fax or multiple faxes * Create and send one or multiple faxes. Fax content may be supplied via one or more files or URLs of supported filetypes. * This endpoint supports the following content types for the fax payload: * - Multipart/form-data * - Application/json * We will however always return a fax array in the response in application json. * If you supply a callbackUrl the callback will be sent as multipart/form-data with the content of the fax as an attachment to the body, *unless* you specify callbackUrlContentType as application/json. * #### file(s) * Files may be included in the POST request as multipart/form-data parts. * #### contentUrl * Any URL on the Internet (including ones with basic authentication), and we'll pull it down and make it a fax. This might be useful to you if you're using a web framework for templates and creating fax files. * Please note: If you are passing fax a secure URL (starting with 'https://'), make sure that your SSL certificate (including your intermediate cert, if you have one) is installed properly, valid, and up-to-date. * @param { SendFaxRequestData } data - The data to provide to the API call. */ send(data: SendFaxRequestData): Promise; }