import type { ConfigManager } from '../config/manager.js'; import type { AutomationJob } from './jobs.js'; import type { CreateAutomationJobInput, UpdateAutomationJobInput } from './manager-runtime-helpers.js'; import type { ModelIdCandidate } from '../providers/model-id-resolution.js'; interface AutomationJobMutationContext { readonly configManager: ConfigManager; readonly jobs: Map; readonly saveJobs: () => Promise; readonly scheduleJob: (job: AutomationJob) => void; readonly syncJobToRuntime: (job: AutomationJob, source: string) => void; readonly emitJobCreated: (job: AutomationJob) => void; readonly emitJobUpdated: (job: AutomationJob, changedFields: string[]) => void; /** * The live provider registry's model candidates, when the caller has one * wired up. Enables bare model id resolution (unique -> auto-qualify; * ambiguous/unknown -> a rich error) for `model`/`fallbackModels` fields. * Omitted callers keep the prior format-only validation. */ readonly listModels?: () => readonly ModelIdCandidate[]; } export declare function createAutomationJobRecord(context: AutomationJobMutationContext, input: CreateAutomationJobInput): Promise; export declare function toggleAutomationJobEnabled(context: AutomationJobMutationContext, jobId: string, enabled: boolean): Promise; export declare function updateAutomationJobRecord(context: AutomationJobMutationContext, jobId: string, patch: UpdateAutomationJobInput): Promise; export {}; //# sourceMappingURL=manager-runtime-job-mutations.d.ts.map