import type { ScheduledJobEvent, SchedulerClient } from '@devvit/scheduler'; export type { CancelJob, RunJob, ScheduledCronJob, ScheduledCronJobOptions, ScheduledJob, ScheduledJobEvent, ScheduledJobOptions, } from '@devvit/scheduler'; import type { Devvit } from '../devvit/Devvit.js'; import type { JSONObject } from './json.js'; export type Scheduler = SchedulerClient; export type ScheduledJobHandler = (event: ScheduledJobEvent, context: JobContext) => void | Promise; export type JobContext = Omit; export type ScheduledJobType = { /** The name of the scheduled job type */ name: string; /** The function that will be called when the job is scheduled to run */ onRun: ScheduledJobHandler; }; //# sourceMappingURL=scheduler.d.ts.map