import type { startBisync, startCopy, startDelete, startMove, startPurge, startSync, } from '../lib/rclone/api' export type ScheduledTask = { id: string cron: string isRunning: boolean isEnabled: boolean currentRunId?: string lastRun?: string lastRunError?: string configId: string } & ( | { operation: 'delete' args: Parameters[0] } | { operation: 'sync' args: Parameters[0] } | { operation: 'copy' args: Parameters[0] } | { operation: 'move' args: Parameters[0] } | { operation: 'purge' args: Parameters[0] } | { operation: 'bisync' args: Parameters[0] } )