/** * ```js * import { updateMessage } from '@amityco/ts-sdk' * const updated = await updateMessage(messageId, { * data: { text: 'hello world' } * }) * ``` * * Updates an {@link Amity.Message} * * @param messageId The ID of the {@link Amity.Message} to edit * @param patch The patch data to apply * @returns the updated {@link Amity.Message} object * * @category Message API * @async */ export declare const updateMessage: { (messageId: Amity.Message['messageId'], patch: Patch): Promise>; /** * ```js * import { updateMessage } from '@amityco/ts-sdk' * const updated = updateMessage.optimistically('foobar', { * data: { text: 'hello world' } * }) * ``` * * Updates an {@link Amity.Message} in cache * * @param messageId The ID of the {@link Amity.Message} to edit * @param patch The patch data to apply * @returns the updated {@link Amity.Message} object * * @category Message API */ optimistically(messageId: Amity.Message['messageId'], patch: Patch): Amity.Cached | undefined; }; //# sourceMappingURL=updateMessage.d.ts.map