import { Elysia } from 'elysia'; import { Cron, type CronOptions } from 'croner'; export interface CronConfig extends CronOptions { /** * Input pattern, input date, or input ISO 8601 time string * * --- * ```plain * ┌────────────── second (optional) * │ ┌──────────── minute * │ │ ┌────────── hour * │ │ │ ┌──────── day of month * │ │ │ │ ┌────── month * │ │ │ │ │ ┌──── day of week * │ │ │ │ │ │ * * * * * * * * ``` */ pattern: string; /** * Cronjob name to registered to `store` */ name: Name; /** * Function to execute on time */ run: (store: Cron) => any | Promise; } export declare const cron: ({ pattern, name, run, ...options }: CronConfig) => (app: Elysia) => Elysia<"", { decorator: {}; store: { cron: Record; }; derive: {}; resolve: {}; }, { typebox: {}; error: {}; }, { schema: {}; standaloneSchema: {}; macro: {}; macroFn: {}; parser: {}; response: {}; }, {}, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }>; export { Patterns } from './schedule'; export default cron;