/** * take a read lock that will be released when the function has finished running * @param func * @param timeout time in ms to wait to get the lock. Null mean infinite. */ export declare const readLockAsync: (func: () => Promise, timeout?: number | null) => Promise; /** * Take a write lock that will be released when the function has finished running * @param func * @param timeout time in ms to wait to get the lock. Null mean infinite. */ export declare const writeLockAsync: (func: () => Promise, timeout?: number | null) => Promise;