//#region src/domains/run/workflow/functions/scheduledTriggerRunner.d.ts
/**
 * One-shot workflow for executing a single scheduled trigger invocation.
 *
 * Dispatched by the trigger dispatcher. Each invocation is independent:
 * 1. Checks if the trigger is still enabled
 * 2. Creates an invocation record (idempotent)
 * 3. Executes the agent with retries
 * 4. Marks completed or failed
 *
 */
type TriggerPayload = {
  tenantId: string;
  projectId: string;
  agentId: string;
  scheduledTriggerId: string;
  scheduledFor: string;
  ref: string;
};
declare function _scheduledTriggerRunnerWorkflow(payload: TriggerPayload): Promise<{
  status: string;
  reason: "deleted" | "disabled" | undefined;
  invocationId?: undefined;
} | {
  status: string;
  invocationId: string;
  reason?: undefined;
}>;
declare const scheduledTriggerRunnerWorkflow: typeof _scheduledTriggerRunnerWorkflow & {
  workflowId: string;
};
//#endregion
export { TriggerPayload, scheduledTriggerRunnerWorkflow };