export type NotificationType = 'task_status_changed' | 'task_created' | 'requirement_updated' | 'spec_generated' | 'code_executed' | 'plan_generated' | 'iteration_created'; export interface Notification { id: string; type: NotificationType; title: string; message: string; actor: string; timestamp: string; iteration?: string; task?: string; metadata?: Record; } /** * 发送通知(记录变更事件) */ export declare function sendNotification(cwd: string, notification: Omit): Promise; /** * 获取所有通知(按时间倒序) */ export declare function getNotifications(cwd: string, options?: { unreadOnly?: boolean; }): Promise; /** * 标记通知为已读 */ export declare function markAsRead(cwd: string, notificationId: string): Promise; /** * 标记所有通知为已读 */ export declare function markAllAsRead(cwd: string): Promise; /** * 清除过期通知(默认保留 30 天) */ export declare function cleanupOldNotifications(cwd: string, maxAgeDays?: number): Promise; /** * 格式化通知为可读文本 */ export declare function formatNotification(n: Notification): string; //# sourceMappingURL=notification.d.ts.map