import { Exception } from '@microsoft.azure/tasks'; export declare class UnableToReadLockException extends Exception { exitCode: number; constructor(path: string, exitCode?: number); } export interface UnlockOptions { realpath?: boolean; delay?: number; } export interface CheckOptions extends UnlockOptions { stale?: number; } export interface LockOptions extends CheckOptions { update?: number; retries?: number; } export declare type release = () => Promise; export declare type _release = () => void; export declare class Lock { private static _exclusive; static check: (path: string, options?: CheckOptions) => Promise; static exclusive(path: string, options?: LockOptions): Promise; static waitForExclusive(path: string, timeout?: number): Promise; static read(path: string, options?: LockOptions): Promise; }