import type { ScheduleState } from '../types.ts'; import type { EngineInternals } from './internals.ts'; import type { ScheduledRunStartOptions } from './schedule-run.ts'; type ScheduleOverlapCallbacks = { cancelWorkflow: (workflowId: string) => Promise; getWorkflowResult: (workflowId: string) => Promise; startScheduledRun: (state: ScheduleState, options?: ScheduledRunStartOptions) => Promise; }; export declare function applyBlockedScheduleOccurrence(internals: EngineInternals, state: ScheduleState, hasActiveWorkflow: boolean, callbacks: ScheduleOverlapCallbacks, occurrence?: number): Promise; export declare function drainQueuedScheduleRun(state: ScheduleState, callbacks: Pick, completedWorkflowId?: string): Promise; export {};