import { type NormalizedBotUsernames } from "../../comments/authors.mts"; import type { ResolveOtherHumanThreads } from "../../config/load.mts"; import type { AgentThread, ReviewThread } from "../../types.mts"; export type RoutableThread = AgentThread | ReviewThread; export interface ThreadMutationRouting { replyThreadIds: string[]; pairedResolveThreadIds: string[]; standaloneResolveThreadIds: string[]; resolveThreadIds: string[]; } export declare function threadHasAuthorizedMutation(thread: { id: string; viewerCanReply?: boolean; viewerCanResolve?: boolean; }, replyThreadIds: ReadonlySet, resolveThreadIds: ReadonlySet): boolean; export declare function buildThreadMutationRouting(threads: RoutableThread[], botUsernames: NormalizedBotUsernames, ruleAutoResolveThreadIds: string[], policy?: ResolveOtherHumanThreads): ThreadMutationRouting;