interface TeamPathDeps { teamDir: (teamName: string, cwd: string) => string; taskClaimLockDir: (teamName: string, taskId: string, cwd: string) => string; mailboxLockDir: (teamName: string, workerName: string, cwd: string) => string; } export declare function withScalingLock(teamName: string, cwd: string, lockStaleMs: number, deps: TeamPathDeps, fn: () => Promise): Promise; export declare function withTeamLock(teamName: string, cwd: string, lockStaleMs: number, deps: TeamPathDeps, fn: () => Promise): Promise; export declare function withTaskClaimLock(teamName: string, taskId: string, cwd: string, lockStaleMs: number, deps: TeamPathDeps, fn: () => Promise): Promise<{ ok: true; value: T; } | { ok: false; }>; export declare function withMailboxLock(teamName: string, workerName: string, cwd: string, lockStaleMs: number, deps: TeamPathDeps, fn: () => Promise): Promise; export {}; //# sourceMappingURL=locks.d.ts.map