import { UserWorkflow } from '../types/memory.js'; import { ListOptions } from '../types/list.js'; import { MemoryModule } from '../modules/memory/memory.module.js'; import { WorkflowVariableResolver } from './workflow-variable-resolver.service.js'; import '../modules/memory/base.memory.js'; import '../types/document.js'; import '../types/schedule.js'; /** * Service for persisting user workflows. * * Keeps storage-focused operations in one place while delegating variable resolution * and execution orchestration to dedicated collaborators. */ declare class UserWorkflowService { private memoryModule; private workflowVariableResolver; constructor(memoryModule: MemoryModule, workflowVariableResolver: WorkflowVariableResolver); createWorkflow(workflow: UserWorkflow): Promise; updateWorkflow(workflowId: string, updates: Partial): Promise; deleteWorkflow(workflowId: string, userId: string): Promise; getWorkflow(workflowId: string): Promise; listWorkflows(userId?: string, options?: ListOptions): Promise; /** undefined = provider has no count support (legacy). */ countWorkflows(userId?: string): Promise; listActiveScheduledWorkflows(): Promise; } export { UserWorkflowService };