import type { Channel, ChannelMessageCount, ServerChannel } from '@mattermost/types/channels'; import type { RelationOneToOne } from '@mattermost/types/utilities'; import type { MMReduxAction } from 'mattermost-redux/action_types'; export default function messageCounts(state: RelationOneToOne | undefined, action: MMReduxAction): RelationOneToOne; export declare function updateMessageCount(state: RelationOneToOne, channel: ServerChannel): RelationOneToOne;