import { type ChatSchedule, type ChatScheduleRule, type ChatScheduleRun, type ChatScheduleSkipReason, type ChatScheduleStatePayload, type CreateChatScheduleInput, type UpdateChatScheduleInput } from '@xopcai/gateway-contract'; import type { AgentSourceContext } from '../agent/source-context/types.js'; import { type ChatScheduleServiceDeps } from './types.js'; export declare function buildChatScheduleSourceContext(schedule: ChatSchedule, roundNumber: number, watcherSummary?: string): AgentSourceContext; export declare function describeScheduleRule(rule: ChatScheduleRule): string; export declare class ChatScheduleService { private deps; private timer; private stopped; private ticking; private readonly inflightTriggers; setDeps(deps: ChatScheduleServiceDeps): void; private now; private requireDeps; initialize(): void; stop(): void; getState(conversationId: string, runLimit?: number): ChatScheduleStatePayload; getSchedule(scheduleId: string): ChatSchedule | null; proposeDraft(conversationId: string, rawInput: CreateChatScheduleInput): ChatSchedule; activateDraft(conversationId: string, scheduleId: string): ChatSchedule; cancelDraft(conversationId: string, scheduleId: string): ChatSchedule; create(conversationId: string, rawInput: CreateChatScheduleInput): ChatSchedule; update(conversationId: string, scheduleId: string, rawPatch: UpdateChatScheduleInput): ChatSchedule; delete(conversationId: string, scheduleId: string): boolean; stopByAgent(conversationId: string, input: { reason: string; evidence?: string; scheduleId?: string; }): ChatSchedule; pauseOnTranscriptReset(conversationId: string): ChatSchedule | null; triggerNow(conversationId: string, scheduleId: string): Promise<{ triggered: boolean; run: ChatScheduleRun; skipReason?: ChatScheduleSkipReason; }>; onAgentRunSettled(input: { conversationId: string; sessionInputId?: string; agentRunId?: string; status: string; summary?: string; error?: string; }): void; private markExpired; private armTimer; private onTimer; private recordSkippedRun; private recordFailedRun; private executeTrigger; private emitUpdated; }