import { TaskComponentState } from "./entities/task" ; import { TaskRepetitionOutcome } from "./event" ; export interface Scheduler { computeNextDueIntervalMillisForRepetition ( componentState , timestampMillis , outcome ) : SchedulerOutput ; } export type SchedulerOutput = { dueTimestampMillis : number ; intervalMillis : number ; } ;