import { AmityAttachmentProductTags } from '~/productRepository/helpers';
/**
 * ```js
 * import { PostRepository } from '@amityco/ts-sdk'
 * const updated = await PostRepository.editPost(postId, {
 *   data: { text: 'hello world' }
 * })
 * ```
 *
 * Updates an {@link Amity.Post}
 *
 * @param postId The ID of the {@link Amity.Post} to edit
 * @param patch The patch data to apply
 * @returns the updated {@link Amity.Post} object
 *
 * @category Post API
 * @async
 */
export declare const editPost: <T extends string>(postId: Amity.Post['postId'], patch: Partial<Pick<Amity.Post<any>, "tags" | "metadata" | "data" | "mentionees" | "hashtags">> & {
    attachments?: {
        type: T;
        fileId: Amity.File['fileId'];
    }[] | undefined;
    links?: Amity.Link[] | undefined;
    productTags?: Amity.TextProductTag[] | undefined;
    attachmentProductTags?: AmityAttachmentProductTags | undefined;
}) => Promise<Amity.Cached<Amity.Post>>;
//# sourceMappingURL=editPost.d.ts.map