import { RequestOptionsFactory } from '@wix/sdk-types'; /** * Retrieves messages between the business and participant. * * * Up to 30 messages are returned per request. If the number of messages in a conversation is larger than 30, * `pagingMetadata.cursors` is returned in the response, indicating that another page of results is available. * To retrieve the next page of messages, pass the `next` cursor value * in the next request's `paging.cursor` parameter. * * To ensure you'll always retrieve the next record, * use the same visibility and sorting * in the first request and all subsequent requests. * * By default, * 30 messages are retrieved and sorted by `sequence` in descending order * (the most recent messages are first in the list). */ export declare function listMessages(payload: object): RequestOptionsFactory; /** * Sends a message to the business or participant. * * * Specify the message type in `message.content` * by including the appropriate object: `basic`, `template`, `minimal`, or `form`. * For more information on message types * and how each type renders in Inbox and the Chat widget, * see [Message Types](#message-types). */ export declare function sendMessage(payload: object): RequestOptionsFactory;