/** * Workflow Lock * * Simple in-process mutex to prevent concurrent workflow operations * (sync, migrate, download, backup) from running simultaneously. * * @since v2.5.16 */ /** * Simple in-process workflow mutex. * Prevents concurrent workflow operations from running simultaneously. */ export declare class WorkflowLock { private activeWorkflow; /** * Acquire the lock for a workflow type. * Throws if another workflow is already running. * Returns an object with a `release` function to unlock when done. */ acquire(type: string): { release: () => void; }; /** * Check if any workflow is currently running. */ isLocked(): boolean; /** * Get the name of the currently active workflow, or null if none. */ getActiveWorkflow(): string | null; } /** Singleton workflow lock instance */ export declare const workflowLock: WorkflowLock; //# sourceMappingURL=workflow-lock.d.ts.map