import { EventEmitter } from 'events'; import type { IModelRunner } from '../agent/model-runner.js'; export declare function cronSystemPromptForBackend(backend: IModelRunner['backendType']): string; export interface CronWorkerOptions { emitter: EventEmitter; systemPrompt?: string; runnerFactory: () => IModelRunner; } export interface CronJobContext { jobId?: string; jobName?: string; channel?: string; } export interface CronCompletedEvent { jobId: string; jobName: string; result: string; duration: number; channel?: string; } export interface CronFailedEvent { jobId: string; jobName: string; error: string; duration: number; channel?: string; } export declare class CronWorker { private runner; private readonly emitter; private readonly systemPrompt; private readonly runnerFactory; private executionQueue; private accepting; private stopPromise; constructor(options: CronWorkerOptions); private ensureRunner; execute(prompt: string, context?: CronJobContext): Promise; private executeInternal; stop(): Promise; } //# sourceMappingURL=cron-worker.d.ts.map