export interface Schedule { id: string; label: string; type?: "chain" | "pipeline"; chainName: string; input: Record; cron: string; enabled: boolean; createdAt: string; lastRunAt?: string; lastRunId?: string; lastRunStatus?: "done" | "error"; nextRunAt?: string; } import type { ExecutionEvent } from "./types.js"; export declare function setSSEEmitter(fn: (executionId: string, event: ExecutionEvent) => void): void; export declare function initScheduler(): void; export declare function getSchedules(): Schedule[]; export declare function getSchedule(id: string): Schedule | undefined; export declare function createSchedule(data: Omit): Schedule; export declare function updateSchedule(id: string, patch: Partial>): Schedule | null; export declare function deleteSchedule(id: string): boolean; export declare function toggleSchedule(id: string): Schedule | null; export declare function runNow(id: string): Promise;