import { type ChatSchedule, type ChatScheduleWatchDecision, type CreateChatScheduleInput } from '@xopcai/gateway-contract'; import type { AgentSourceContext } from '../agent/source-context/types.js'; import { type Config } from '../config/schema.js'; export interface WatcherEvaluationResult { decision: ChatScheduleWatchDecision; summary: string; nextState?: string; dispatchMessage?: string; reason?: string; evidence?: string; } /** * Combine the user's configured main-chat dispatch prompt (preserving any leading `/skill:name`) * with the incremental findings detected by the sidecar Watcher. */ export declare function composeWatchedDispatchContent(schedule: Pick, watcherDispatchMessage?: string): string; export declare function runSidecarWatcherCheck(params: { schedule: ChatSchedule; roundNumber: number; getConfig: () => Config | undefined; expandSkillText?: (text: string) => string; }): Promise; export interface DraftScheduleFromNaturalLanguageResult { input: CreateChatScheduleInput; /** Short, user-facing items that could not be safely inferred from the prompt/context. */ missingDetails: string[]; } /** * Lightweight natural-language parser used by `/watch ` so BOTH Native Agents * and External Agents can turn a one-liner into a structured watch draft plus a list * of any ambiguous/missing fields the user should review in the modal form. */ export declare function draftScheduleFromNaturalLanguageWithMeta(params: { conversationId: string; requestText: string; sourceContexts?: AgentSourceContext[]; getConfig: () => Config | undefined; }): Promise; export declare function draftScheduleFromNaturalLanguage(params: { conversationId: string; requestText: string; getConfig: () => Config | undefined; }): Promise;