import { Observable } from 'rxjs/Observable'; import { FileId, UserId, PostId } from 'teambition-types'; import { SDK } from '../../SDK'; import { SDKFetch } from '../../SDKFetch'; import { PostModeOptions } from '../../schemas/Post'; export interface UpdatePostOptions { title?: string; content?: string; postMode?: PostModeOptions; pin?: boolean; attachments?: FileId[]; involveMembers?: UserId[]; } export declare function updatePostFetch(this: SDKFetch, _id: PostId, options: UpdatePostOptions): Observable; declare module '../../SDKFetch' { interface SDKFetch { updatePost: typeof updatePostFetch; } } export declare function updatePost(this: SDK, _id: PostId, options: UpdatePostOptions): Observable; declare module '../../SDK' { interface SDK { updatePost: typeof updatePost; } }