import { type BroadcastCallbacks } from './broadcast.ts'; import type { ConstraintCallbacks } from './constraints.ts'; import type { GuardCallbacks } from './guards.ts'; import type { Engine } from './index.ts'; import { type InlineLaunchQueueCallbacks } from './inline-launch-queue.ts'; import { type LifecycleCallbacks } from './lifecycle.ts'; import { type RegistrationCallbacks } from './registration.ts'; import { type TerminationCallbacks } from './termination.ts'; /** * Public update-broadcast hook shape used by callback-bundle factories that * dispatch `update:completed` events back to engine consumers. */ export type PendingUpdateBroadcastCallbacks = { dispatchEvent: (event: Event) => boolean; broadcast: (message: { type: 'update:completed'; workflowId: string; updateId: string; }) => void; }; export declare function createPendingUpdateCallbacks(engine: Engine): PendingUpdateBroadcastCallbacks; export declare function createInlineLaunchQueueCallbacks(engine: Engine): InlineLaunchQueueCallbacks; export declare function processPendingUpdatesAfterInlineAdvanceForEngine(engine: Engine, workflowId: string): Promise; export declare function createLifecycleCallbacks(engine: Engine): LifecycleCallbacks; /** * Build the termination callback bundle. * * The `handleScheduledWorkflowTerminal` callback is parameterized so this * factory does not depend on the schedule sibling module; callers wire in the * schedule terminal hook from `callback-creators-schedule.ts`. */ export declare function createTerminationCallbacksWith(engine: Engine, handleScheduledWorkflowTerminal: (workflowId: string) => Promise): TerminationCallbacks; export declare function registerScheduledWorkflowTerminalHandler(handler: (engine: Engine, workflowId: string) => Promise): void; export declare function createTerminationCallbacks(engine: Engine): TerminationCallbacks; export declare function createRegistrationCallbacks(engine: Engine): RegistrationCallbacks; export declare function registerEnsureRetentionSweepInterval(fn: (engine: Engine) => void): void; export declare function createBroadcastCallbacks(engine: Engine): BroadcastCallbacks; export declare function createGuardCallbacks(engine: Engine): GuardCallbacks; export declare function createConstraintCallbacks(engine: Engine): ConstraintCallbacks;