import { GuidValue, IPersistedPost, IPostBaseContext, IPostBaseWithContext, ReactionType, ResolvedUserIdentity } from "../models"; import { PostService } from "../services/PostService"; import { Store } from "./Store"; import { UserIdentityStore } from "./UserIdentityStore"; export declare class PostStore, TContextType extends IPostBaseContext> extends Store { postService: PostService; userIdentityStore: UserIdentityStore; constructor(); posts: import("./Store").StoreState<{ [topicId: string]: IPersistedPost[]; }>; userHash: { [principalName: string]: ResolvedUserIdentity; }; topPostsIds: { [postId: string]: string; }; topPostLastActivity: { [topPostId: string]: string; }; getters: { topPosts: (topicId: string) => IPersistedPost[]; replies: (topicId: string, id: string) => IPersistedPost[]; post: (topicId: string, id: string) => IPersistedPost; posts: (topicIds: Array) => IPersistedPost>[]; }; mutations: {}; actions: { toggleLike: import("./Store").StoreAction, currentUser: ResolvedUserIdentity) => void, (result: IPersistedPost>, persistedPost: IPersistedPost, currentUser: ResolvedUserIdentity) => void, (failureReason: any, persistedPost: IPersistedPost, currentUser: ResolvedUserIdentity) => void, (persistedPost: IPersistedPost, currentUser: ResolvedUserIdentity) => Promise>>>; socialReacts: import("./Store").StoreAction, isReacts: boolean, reactionType: ReactionType) => void, (result: IPersistedPost>, postToReact: IPersistedPost, isReacts: boolean, reactionType: ReactionType) => void, (failureReason: any, postToReact: IPersistedPost, isReacts: boolean, reactionType: ReactionType) => void, (postToReact: IPersistedPost, isReacts: boolean, reactionType: ReactionType) => Promise>>>; createPost: import("./Store").StoreAction void, (result: IPersistedPost, post: TPostType, currentUser: ResolvedUserIdentity) => void, (failureReason: any, post: TPostType, currentUser: ResolvedUserIdentity) => void, (post: TPostType, currentUser: ResolvedUserIdentity) => Promise>>; deletePost: import("./Store").StoreAction, currentUser: ResolvedUserIdentity) => void, (result: IPersistedPost, persistedPost: IPersistedPost, currentUser: ResolvedUserIdentity) => void, (failureReason: any, persistedPost: IPersistedPost, currentUser: ResolvedUserIdentity) => void, (persistedPost: IPersistedPost, currentUser: ResolvedUserIdentity) => Promise>>; updatePost: import("./Store").StoreAction) => void, (result: IPersistedPost, persistedPost: IPersistedPost) => void, (failureReason: any, persistedPost: IPersistedPost) => void, (persistedPost: IPersistedPost) => Promise>>; loadData: import("./Store").StoreAction void, (result: any[], omniaServiceId: GuidValue, postTypeId: GuidValue, topicIds: GuidValue[], currentUser: ResolvedUserIdentity) => void, (failureReason: any, omniaServiceId: GuidValue, postTypeId: GuidValue, topicIds: GuidValue[], currentUser: ResolvedUserIdentity) => void, (omniaServiceId: GuidValue, postTypeId: GuidValue, topicIds: Array, currentUser: ResolvedUserIdentity) => Promise>; }; calculateTopPostLastActivity(posts: IPersistedPost>[]): void; getSortedPosts(persistedPosts: Array>>): IPersistedPost>[]; onActivated(): void; onDisposing(): void; }