@mastra/core
Version:
20 lines • 770 B
TypeScript
import type { CreatedAgentSignal } from '../agent/signals.js';
import type { Mastra } from '../mastra/index.js';
import type { NotificationsStorage } from './storage.js';
import type { NotificationRecord } from './types.js';
export type DispatchDueNotificationsInput = {
mastra: Mastra;
storage: NotificationsStorage;
now?: Date;
limit?: number;
};
export type DispatchDueNotificationsResult = {
delivered: NotificationRecord[];
failed: Array<{
record: NotificationRecord;
error: string;
}>;
signals: CreatedAgentSignal[];
};
export declare function dispatchDueNotifications({ mastra, storage, now, limit, }: DispatchDueNotificationsInput): Promise<DispatchDueNotificationsResult>;
//# sourceMappingURL=dispatcher.d.ts.map