import type { Conversation } from '@doist/comms-sdk'; import type { MutationOptions, PaginatedViewOptions, StdinOptions, ViewOptions } from '../../lib/options.js'; export type UnreadOptions = ViewOptions & { workspace?: string; }; export type ConversationViewOptions = PaginatedViewOptions; export type ConversationWithOptions = PaginatedViewOptions & { workspace?: string; includeGroups?: boolean; snippet?: boolean; }; export type ConversationListOptions = ViewOptions & { workspace?: string; participant?: string; name?: string; kind?: string; state?: string; snippet?: boolean; limit?: string; }; /** Fields the conversation renderer reads — satisfied by both `with` and `list` options. */ export type ConversationRenderOptions = { json?: boolean; ndjson?: boolean; idsOnly?: boolean; full?: boolean; snippet?: boolean; }; export type ConversationState = 'active' | 'all' | 'archived'; export type ReplyOptions = MutationOptions & StdinOptions & { file?: string[]; }; export type MuteOptions = MutationOptions & { minutes?: string; }; export type DoneOptions = MutationOptions; export type ConversationLookupResult = { directConversation?: Conversation; groupConversationCount: number; }; export declare function buildConversationTitle(conversation: Pick, userMap: Map): string; export declare function conversationLabel(conversation: Pick): string; export declare function sortByLastActiveDescending(a: Conversation, b: Conversation): number; /** * Fetch ALL of a workspace's conversations for the requested * {@link ConversationState}, sorted by last activity (newest first). * `active`/`archived` page one filtered stream each; `all` pages the * server's unfiltered stream once. */ export declare function getConversationsByState(workspaceId: number, state?: ConversationState): Promise; export declare function findDirectConversation(workspaceId: number, sessionUserId: number, targetUserId: number): Promise; export declare function renderConversationList(conversations: Conversation[], workspaceId: number, options: ConversationRenderOptions): Promise; export declare function parseMinutes(value: string | undefined): number; //# sourceMappingURL=helpers.d.ts.map