import type { ManipulateType } from 'dayjs';

import type { NotificationQueueJob } from '../../queues/notification';

export interface Diff {
  value: number;
  unit: ManipulateType;

  // 这个 job 必须跑吗?
  required?: false | true;
}

export type Task<Options> = {
  id: string;
  job: { type: NotificationQueueJob['type']; options: Options };
  delay: number;
};
