import { Channel } from "../../types/channels"; import { Post, PostOrderBlock, PostWithFormatData } from "../../types/posts"; import { Reaction } from "../../types/reactions"; import { GlobalState } from "../../types/store"; import { $ID, RelationOneToOne, RelationOneToMany } from "../../types/utilities"; export declare function getAllPosts(state: GlobalState): RelationOneToOne; export declare function getPost(state: GlobalState, postId: $ID): Post; export declare function getPostRepliesCount(state: GlobalState, postId: $ID): number; export declare function getPostsInThread(state: GlobalState): RelationOneToMany; export declare function getReactionsForPosts(state: GlobalState): RelationOneToOne; export declare function makeGetReactionsForPost(): (state: GlobalState, postId: $ID) => { [x: string]: Reaction; } | undefined | null; export declare function getOpenGraphMetadata(state: GlobalState): RelationOneToOne; export declare function getOpenGraphMetadataForUrl(state: GlobalState, postId: string, url: string): object; export declare function getPostIdsInCurrentChannel(state: GlobalState): Array<$ID> | undefined | null; export declare const getPostsInCurrentChannel: (state: GlobalState) => Array | undefined | null; export declare function makeGetPostIdsForThread(): (state: GlobalState, postId: $ID) => Array<$ID>; export declare function makeGetPostsChunkAroundPost(): (state: GlobalState, postId: $ID, channelId: $ID) => PostOrderBlock | null | undefined; export declare function makeGetPostIdsAroundPost(): (state: GlobalState, postId: $ID, channelId: $ID, a: { postsBeforeCount: number; postsAfterCount: number; }) => Array<$ID> | undefined | null; export declare function makeGetPostsInChannel(): (state: GlobalState, channelId: $ID, numPosts: number) => Array | undefined | null; export declare function makeGetPostsAroundPost(): (state: GlobalState, postId: $ID, channelId: $ID) => Array | undefined | null; export declare function makeGetPostsForThread(): (state: GlobalState, props: { rootId: $ID; }) => Array; export declare function makeGetCommentCountForPost(): (state: GlobalState, props: { post: Post; }) => number; export declare const getSearchResults: (state: GlobalState) => Array; export declare function getSearchMatches(state: GlobalState): { [x: string]: Array; }; export declare function makeGetMessageInHistoryItem(type: 'post' | 'comment'): (state: GlobalState) => string; export declare function makeGetPostsForIds(): (state: GlobalState, postIds: Array<$ID>) => Array; export declare const getLastPostPerChannel: (state: GlobalState) => RelationOneToOne; export declare const getMostRecentPostIdInChannel: (state: GlobalState, channelId: $ID) => $ID | undefined | null; export declare const getLatestReplyablePostId: (state: GlobalState) => $ID; export declare const getCurrentUsersLatestPost: (state: GlobalState, postId: $ID) => PostWithFormatData | undefined | null; export declare function getRecentPostsChunkInChannel(state: GlobalState, channelId: $ID): PostOrderBlock | null | undefined; export declare function getOldestPostsChunkInChannel(state: GlobalState, channelId: $ID): PostOrderBlock | null | undefined; export declare function getPostIdsInChannel(state: GlobalState, channelId: $ID): Array<$ID> | undefined | null; export declare function getPostsChunkInChannelAroundTime(state: GlobalState, channelId: $ID, timeStamp: number): object | undefined | null; export declare function getUnreadPostsChunk(state: GlobalState, channelId: $ID, timeStamp: number): object | undefined | null; export declare const isPostIdSending: (state: GlobalState, postId: string) => boolean; export declare const makeIsPostCommentMention: () => (state: GlobalState, postId: string) => boolean; export declare function getExpandedLink(state: GlobalState, link: string): string;