import type { Job } from '../../types/cronjob.js'; export interface RunJobDeps { refreshSettings: () => Promise; importJob: (resolve: string) => Promise<{ default?: unknown; }>; logError: (e: unknown) => void; } /** * Run one cron job. The cron process keeps its own settings cache, filled * once at boot, and `saveSetting` refreshes only the web process that saved * the change. So refresh it before every run: a setting an admin changes * (the PayPal credentials and environment the reconciliation job calls, the * store languages the sitemap lists) reaches the jobs without a restart, as * the event process already does before each batch. A failed refresh is * logged and keeps the cache it had; the job still runs. */ export declare function runJob(job: Pick, deps?: RunJobDeps): Promise;