import type { CommsApi, UnreadThread } from '@doist/comms-sdk'; export type UnreadThreadMap = Map; /** Normalises the SDK's `{ data, version }` unread response into a Map keyed by thread ID. */ export declare function fetchUnreadThreads(client: CommsApi, workspaceId: number): Promise; /** Per-thread unread state for list output. `hasUnreadMention` is only ever true for an unread thread. */ export declare function unreadFlags(threadId: string, unreadThreads: UnreadThreadMap): { isUnread: boolean; hasUnreadMention: boolean; }; //# sourceMappingURL=threads.d.ts.map