import type { Context } from '@deepseek-ai/cordis'; import { PartnerStore } from './store.js'; import { PartnerAgentRuntime } from './agent-runtime.js'; import { PartnerConcernStore } from './concern-store.js'; export interface HeartbeatResult { checked: boolean; sent: boolean; reason?: string; outcome?: 'success' | 'partial' | 'blocked'; } export interface HeartbeatTriggerOptions { manual?: boolean; concernId?: string; recordingOnly?: boolean; } export declare class HeartbeatScheduler { private readonly ctx; private readonly store; private readonly agents; private readonly concerns; private readonly timeZone; private readonly notify?; private executionDispatcher?; setExecutionDispatcher(dispatch: (companionId: string) => Promise): void; private timer; private closed; private readonly running; private readonly manualResults; private deliverNotifications; manualStatus(id: string): { running: boolean; result: HeartbeatResult | null; }; startManual(id: string, concernId?: string): { accepted: boolean; running: boolean; reason: string; }; constructor(ctx: Context, store: PartnerStore, agents: PartnerAgentRuntime, concerns: PartnerConcernStore, timeZone?: string, notify?: ((companionId: string, text: string, receipt: string) => Promise) | undefined); start(): void; close(): Promise; isRunning(id: string): boolean; removeConcern(companionId: string, concernId: string, expectedUpdatedAt: number): Promise; trigger(companionId: string, options?: HeartbeatTriggerOptions): Promise; private schedule; private startIdleContact; private tick; private nextConcernDue; private executionRoutes; private canNotify; private run; private recordActivity; private saveState; } export declare function quiet(now: number, start: number, end: number, timeZone?: string): boolean; export declare function nextAllowedTime(now: number, hour: number, timeZone?: string): number; export declare function nextDay(now: number, hour: number, timeZone?: string): number; export declare function localDay(now: number, timeZone?: string): string; export declare function heartbeatRetryAt(now: number, intervalMinutes: number, failures: number): number; //# sourceMappingURL=heartbeat.d.ts.map