import { Resource, CronJob as BaseCronJob } from 'wirejs-resources'; export type CronJobDefinition = { absoluteId: string; schedule: string; }; /** * A function that will be executed on a recurring schedule defined by a cron expression. * * In AWS deployments, the schedule is managed by Amazon EventBridge. * * A `CronJob` can also invoke an existing BackgroundJob from its handler. * * ## WARNINGS * * 1. These jobs execute in a completely different environment that the one that defines it. * DO NOT depend on global variables, closures, or other process state that is not lazily * created or constructed in-place by the script. * 2. In local development, **timeouts are not enforced.** (Yet.) */ export declare class CronJob extends Resource implements Omit { static registeredJobs: Map Promise; }>; readonly schedule: string; constructor(scope: Resource | string, id: string, options: { schedule: string; handler: () => Promise; }); }