import { Hub } from '../types'; declare type RedlockOptions = { server: Hub; resource: string; onLock: () => Promise | void; onUnlock: () => Promise | void; ttl: number; }; export declare function startRedlock({ server, resource, onLock, onUnlock, ttl, }: RedlockOptions): Promise<() => Promise>; export {};