import { Observable } from 'rxjs/Observable'; import { SDK } from '../../SDK'; import { SDKFetch } from '../../SDKFetch'; import { PostModeOptions, PostSchema } from '../../schemas/Post'; import { ProjectId, VisibleOption, FileId, UserId, TagId } from 'teambition-types'; export interface CreatePostOptions { _projectId: ProjectId; title: string; content: string; postMode?: PostModeOptions; visible?: VisibleOption; attachments?: FileId[]; involveMembers?: UserId[]; tagIds?: TagId[]; } export declare function createPostFetch(this: SDKFetch, options: CreatePostOptions): Observable; declare module '../../SDKFetch' { interface SDKFetch { createPost: typeof createPostFetch; } } export declare function createPost(this: SDK, options: CreatePostOptions): Observable; declare module '../../SDK' { interface SDK { createPost: typeof createPost; } }