import type { Config } from '../../../config/schema.js'; import { type AttentionThread } from '../../../proactive-hub/proactivity/repository.js'; import { type FollowUpInput, type FollowUpToolDeps } from './schema.js'; import { type UserTurnSource } from './target-resolver.js'; export declare function handleListCommand(params: { ownerId: string; conversationId: string; config: Config; input: FollowUpInput; deps: FollowUpToolDeps; }): { content: { type: "text"; text: string; }[]; details: {}; }; export declare function handleUnifiedStop(params: { ownerId: string; conversationId: string; input: FollowUpInput; source: UserTurnSource; sourceText: string; timezone: string; targetAttentionThread: AttentionThread | undefined; deps: FollowUpToolDeps; }): { content: { type: "text"; text: string; }[]; details: { matter?: undefined; delivery?: undefined; followUp?: undefined; }; } | { content: { type: "text"; text: string; }[]; details: { matter: import("../../../proactive-hub/matters.js").FollowUpMatter; delivery?: undefined; followUp?: undefined; }; } | { content: { type: "text"; text: string; }[]; details: { delivery: { version: 2; operation: "completed" | "failed" | "created" | "updated" | "opened" | "started"; primary?: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; } | undefined; related?: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }[] | undefined; presentation?: { kind: "inline_app"; reference: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }; snapshot: { sourceHash: string; }; preferredHeight: number; } | { kind: "inline_preview"; reference: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }; sourceHash: string; preferredHeight: number; } | { kind: "table"; items: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }[]; truncated: boolean; query?: string | undefined; } | { kind: "diff"; title: string; truncated: boolean; edits: { from: number; to: number; text: string; }[]; } | { kind: "config_change"; changeId: string; tier: 1 | 2; target: string; title: string; canRollback: boolean; changes: { field: string; before?: string | undefined; after?: string | undefined; }[]; } | { kind: "chat_schedule_proposal"; scheduleId: string; conversationId: string; mode: "watch" | "direct"; prompt: string; schedule: { kind: "interval"; everyMs: number; anchorMs?: number | undefined; } | { kind: "cron"; expr: string; tz?: string | undefined; }; watchPrompt?: string | undefined; watcherAgentId?: string | undefined; watcherModel?: string | undefined; stopCondition?: string | undefined; maxRuns?: number | null | undefined; expiresInHours?: number | null | undefined; missingDetails?: string[] | undefined; hasBaseline?: boolean | undefined; } | undefined; }; followUp: { followUpId: string; status: "expired" | "active" | "paused" | "completed" | "candidate"; displayState: "expired" | "ended" | "delivered" | "resolved_before_check" | "stopped" | "scheduled" | "queued_delivery"; revision: number; subject: string; summary: string; taskId: string; projectId: string | null; waitId: string; destination: "assistant" | "workbench"; timezone: string; checkAt: number; validUntil: number; lastCheckedAt: number | null; lastCheckError: string | null; terminalReason: "expired" | "delivered" | "resolved_before_check" | "stopped" | "task_closed" | "task_deleted" | "access_revoked" | "conversation_reset" | null; conversationId: string; outreach: { outreachId: string; state: "cancelled" | "ready" | "stale" | "decided" | "published"; destination: "assistant" | "workbench"; publishedAt: number | null; acknowledgedAt: number | null; text?: string | null | undefined; } | null; sourcesAvailable: boolean; sources: { conversationId: string; transcriptId: string; entryId: string; excerpt: string; }[]; createdAt: number; updatedAt: number; taskTitle?: string | undefined; projectName?: string | undefined; waitKind?: "approval" | "user_input" | undefined; waitSummary?: string | undefined; }; matter?: undefined; }; }; export declare function handleFollowAttention(params: { ownerId: string; conversationId: string; config: Config; input: FollowUpInput; source: UserTurnSource; sourceText: string; nextCheckAt: number | undefined; timezone: string; deps: FollowUpToolDeps; }): { content: { type: "text"; text: string; }[]; details: { existingFollowUp?: undefined; delivery?: undefined; followUp?: undefined; matter?: undefined; }; } | { content: { type: "text"; text: string; }[]; details: { existingFollowUp: { followUpId: string; status: "expired" | "active" | "paused" | "completed" | "candidate"; displayState: "expired" | "ended" | "delivered" | "resolved_before_check" | "stopped" | "scheduled" | "queued_delivery"; revision: number; subject: string; summary: string; taskId: string; projectId: string | null; waitId: string; destination: "assistant" | "workbench"; timezone: string; checkAt: number; validUntil: number; lastCheckedAt: number | null; lastCheckError: string | null; terminalReason: "expired" | "delivered" | "resolved_before_check" | "stopped" | "task_closed" | "task_deleted" | "access_revoked" | "conversation_reset" | null; conversationId: string; outreach: { outreachId: string; state: "cancelled" | "ready" | "stale" | "decided" | "published"; destination: "assistant" | "workbench"; publishedAt: number | null; acknowledgedAt: number | null; text?: string | null | undefined; } | null; sourcesAvailable: boolean; sources: { conversationId: string; transcriptId: string; entryId: string; excerpt: string; }[]; createdAt: number; updatedAt: number; taskTitle?: string | undefined; projectName?: string | undefined; waitKind?: "approval" | "user_input" | undefined; waitSummary?: string | undefined; }; delivery?: undefined; followUp?: undefined; matter?: undefined; }; } | { content: { type: "text"; text: string; }[]; details: { delivery: { version: 2; operation: "completed" | "failed" | "created" | "updated" | "opened" | "started"; primary?: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; } | undefined; related?: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }[] | undefined; presentation?: { kind: "inline_app"; reference: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }; snapshot: { sourceHash: string; }; preferredHeight: number; } | { kind: "inline_preview"; reference: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }; sourceHash: string; preferredHeight: number; } | { kind: "table"; items: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }[]; truncated: boolean; query?: string | undefined; } | { kind: "diff"; title: string; truncated: boolean; edits: { from: number; to: number; text: string; }[]; } | { kind: "config_change"; changeId: string; tier: 1 | 2; target: string; title: string; canRollback: boolean; changes: { field: string; before?: string | undefined; after?: string | undefined; }[]; } | { kind: "chat_schedule_proposal"; scheduleId: string; conversationId: string; mode: "watch" | "direct"; prompt: string; schedule: { kind: "interval"; everyMs: number; anchorMs?: number | undefined; } | { kind: "cron"; expr: string; tz?: string | undefined; }; watchPrompt?: string | undefined; watcherAgentId?: string | undefined; watcherModel?: string | undefined; stopCondition?: string | undefined; maxRuns?: number | null | undefined; expiresInHours?: number | null | undefined; missingDetails?: string[] | undefined; hasBaseline?: boolean | undefined; } | undefined; }; followUp: { followUpId: string; status: "expired" | "active" | "paused" | "completed" | "candidate"; displayState: "expired" | "ended" | "delivered" | "resolved_before_check" | "stopped" | "scheduled" | "queued_delivery"; revision: number; subject: string; summary: string; taskId: string; projectId: string | null; waitId: string; destination: "assistant" | "workbench"; timezone: string; checkAt: number; validUntil: number; lastCheckedAt: number | null; lastCheckError: string | null; terminalReason: "expired" | "delivered" | "resolved_before_check" | "stopped" | "task_closed" | "task_deleted" | "access_revoked" | "conversation_reset" | null; conversationId: string; outreach: { outreachId: string; state: "cancelled" | "ready" | "stale" | "decided" | "published"; destination: "assistant" | "workbench"; publishedAt: number | null; acknowledgedAt: number | null; text?: string | null | undefined; } | null; sourcesAvailable: boolean; sources: { conversationId: string; transcriptId: string; entryId: string; excerpt: string; }[]; createdAt: number; updatedAt: number; taskTitle?: string | undefined; projectName?: string | undefined; waitKind?: "approval" | "user_input" | undefined; waitSummary?: string | undefined; }; existingFollowUp?: undefined; matter?: undefined; }; } | { content: { type: "text"; text: string; }[]; details: { matter: import("../../../proactive-hub/matters.js").FollowUpMatter; existingFollowUp?: undefined; delivery?: undefined; followUp?: undefined; }; }; export declare function handleUpdateAttention(params: { ownerId: string; conversationId: string; input: FollowUpInput; source: UserTurnSource; sourceText: string; nextCheckAt: number | undefined; timezone: string; targetAttentionThread: AttentionThread | undefined; deps: FollowUpToolDeps; }): { content: { type: "text"; text: string; }[]; details: { delivery: { version: 2; operation: "completed" | "failed" | "created" | "updated" | "opened" | "started"; primary?: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; } | undefined; related?: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }[] | undefined; presentation?: { kind: "inline_app"; reference: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }; snapshot: { sourceHash: string; }; preferredHeight: number; } | { kind: "inline_preview"; reference: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }; sourceHash: string; preferredHeight: number; } | { kind: "table"; items: { kind: "automation" | "project" | "note" | "session" | "task" | "agent" | "file" | "calendar_event" | "follow_up" | "local_app" | "chat_preview" | "settings"; id: string; title: string; capabilities: ("open" | "preview" | "edit" | "continue_in_chat" | "fix" | "run" | "pause" | "resume" | "share" | "reveal" | "configure" | "rollback")[]; summary?: string | undefined; status?: string | undefined; revision?: string | undefined; projectId?: string | undefined; projectTitle?: string | undefined; runId?: string | undefined; }[]; truncated: boolean; query?: string | undefined; } | { kind: "diff"; title: string; truncated: boolean; edits: { from: number; to: number; text: string; }[]; } | { kind: "config_change"; changeId: string; tier: 1 | 2; target: string; title: string; canRollback: boolean; changes: { field: string; before?: string | undefined; after?: string | undefined; }[]; } | { kind: "chat_schedule_proposal"; scheduleId: string; conversationId: string; mode: "watch" | "direct"; prompt: string; schedule: { kind: "interval"; everyMs: number; anchorMs?: number | undefined; } | { kind: "cron"; expr: string; tz?: string | undefined; }; watchPrompt?: string | undefined; watcherAgentId?: string | undefined; watcherModel?: string | undefined; stopCondition?: string | undefined; maxRuns?: number | null | undefined; expiresInHours?: number | null | undefined; missingDetails?: string[] | undefined; hasBaseline?: boolean | undefined; } | undefined; }; followUp: { followUpId: string; status: "expired" | "active" | "paused" | "completed" | "candidate"; displayState: "expired" | "ended" | "delivered" | "resolved_before_check" | "stopped" | "scheduled" | "queued_delivery"; revision: number; subject: string; summary: string; taskId: string; projectId: string | null; waitId: string; destination: "assistant" | "workbench"; timezone: string; checkAt: number; validUntil: number; lastCheckedAt: number | null; lastCheckError: string | null; terminalReason: "expired" | "delivered" | "resolved_before_check" | "stopped" | "task_closed" | "task_deleted" | "access_revoked" | "conversation_reset" | null; conversationId: string; outreach: { outreachId: string; state: "cancelled" | "ready" | "stale" | "decided" | "published"; destination: "assistant" | "workbench"; publishedAt: number | null; acknowledgedAt: number | null; text?: string | null | undefined; } | null; sourcesAvailable: boolean; sources: { conversationId: string; transcriptId: string; entryId: string; excerpt: string; }[]; createdAt: number; updatedAt: number; taskTitle?: string | undefined; projectName?: string | undefined; waitKind?: "approval" | "user_input" | undefined; waitSummary?: string | undefined; }; }; } | { content: { type: "text"; text: string; }[]; details: { delivery?: undefined; followUp?: undefined; }; };