import type { Conversation } from '@doist/twist-sdk'; import type { MutationOptions, PaginatedViewOptions, 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 ReplyOptions = MutationOptions & { file?: string[]; }; export type MuteOptions = MutationOptions & { minutes?: string; }; export type DoneOptions = MutationOptions; export declare const CONVERSATION_PAGE_LIMIT = 100; export type ConversationPageArgs = { workspaceId: number; archived?: boolean; limit: number; beforeId?: number; }; 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; export declare function getConversationPages(initialArgs: ConversationPageArgs): Promise; export declare function getAllConversations(workspaceId: number): Promise; export declare function findDirectConversation(workspaceId: number, sessionUserId: number, targetUserId: number): Promise; export declare function listConversationsWithUser(conversations: Conversation[], workspaceId: number, options: ConversationWithOptions): Promise; export declare function parseMinutes(value: string | undefined): number; //# sourceMappingURL=helpers.d.ts.map