export declare class MemoryLock { private readonly key; constructor(key: string); lock(): Promise; unlock(): Promise; static start(id: string, worker: () => Promise, interval?: number): Promise; }