import type { PendingQuestionSummary } from "../../shared/schemas/pending-question.schema.js"; /** Maximum pending questions attached to a single tool result. */ export declare const MAX_PENDING_QUESTIONS = 3; export interface MergePendingQuestionsInput { findPendingQuestions?: (userId: string, filters?: { sourceType?: string; sourceId?: string; networkId?: string; scopeType?: 'intent'; scopeId?: string; }) => Promise; userId: string; sourceType?: string; sourceId?: string; /** Restrict to questions whose actor carries this network id. */ networkId?: string; /** Optional selected-intent scope. */ scopeType?: 'intent'; scopeId?: string; /** IDs already shown in this chat session — skip them. */ surfacedQuestionIds: Set; } export interface MergePendingQuestionsResult { /** Questions to attach to the tool result (under the `questions` key). */ questions: PendingQuestionSummary[]; /** IDs of the questions that were included (caller should add to surfacedQuestionIds). */ surfacedIds: string[]; } /** * Query pending questions and filter out already-surfaced ones. * Returns at most MAX_PENDING_QUESTIONS entries. */ export declare function mergePendingQuestions(input: MergePendingQuestionsInput): Promise;