import type { FactoryActorKind } from './actor.js'; import type { FactoryMentionRef, WorkItemCommentReplyRef, WorkItemCommentRow } from './base.js'; /** * Display-only author. The stored `FactoryActorRef` also carries the platform * join keys (team, message, bot flag) that linked a sender to a tenant user; * those never reach a thread reader. */ export interface WireCommentAuthor { kind: FactoryActorKind; id: string; displayName?: string; avatarUrl?: string; } export interface WireComment { id: string; workItemId: string; kind: string; body: string; bodyFormat: string; author: WireCommentAuthor; replyTo?: WorkItemCommentReplyRef; mentions: FactoryMentionRef[]; /** The viewer's own local sends only, so their client can match pending rows. */ clientToken?: string; origin?: { integrationId: string; type: string; url?: string; }; revision: number; occurredAt: string; editedAt?: string; deletedAt?: string; } export interface WireCommentPage { comments: WireComment[]; nextCursor?: string; } export declare function toWireComment(comment: WorkItemCommentRow, viewerId: string): WireComment; //# sourceMappingURL=wire.d.ts.map