import { MusterContext } from "./common.mjs"; import { DateRange } from "@classytic/primitives/period"; //#region src/domain/ports/schedule.bridge.d.ts /** * A scheduled window returned by the host. Extends primitives' `DateRange` * so hosts can pass any existing date range without adapter code. */ interface ScheduleWindow extends DateRange { /** Opaque external ref the host may use for correlation. */ externalRef?: string; } interface ScheduleBridge { /** * Given a subject + scope + "now" timestamp, return the currently-active * scheduled window (if any). Muster uses it to populate * `scheduledStart` / `scheduledEnd` on new sessions. */ resolveWindow?(subjectRef: string, subjectModel: string, scope: string | undefined, now: Date, ctx: MusterContext): Promise; } //#endregion export { ScheduleBridge, ScheduleWindow };