export declare function acquireSyncLock(lockPath: string, staleMs?: number): Promise<() => Promise>;