// Pure type definitions for client-safe exports // This file contains NO runtime code and can be safely bundled export interface CustomTriggerOptions { workflowId: string triggerData?: any req?: any // PayloadRequest type, but avoiding import to keep this client-safe } export interface TriggerResult { success: boolean runId?: string error?: string } export interface ExecutionContext { trigger: { type: string doc?: any data?: any } steps: Record payload: any // Payload instance req: any // PayloadRequest } // NOTE: Workflow, WorkflowStep, and WorkflowTrigger types are now imported from the generated PayloadCMS types // These interfaces have been removed to avoid duplication and inconsistencies // Import them from 'payload' or the generated payload-types.ts file instead export interface WorkflowsPluginConfig { collections?: string[] globals?: string[] logging?: { level?: 'debug' | 'info' | 'warn' | 'error' enabled?: boolean } }