ipfs-repo
Version:
IPFS Repo implementation
24 lines • 578 B
TypeScript
export namespace MemoryLock {
export { lock };
export { locked };
}
export type LockCloser = import('../types').LockCloser;
/**
* @typedef {import('../types').LockCloser} LockCloser
*/
/**
* Lock the repo in the given dir.
*
* @param {string} dir
* @returns {Promise<LockCloser>}
*/
declare function lock(dir: string): Promise<LockCloser>;
/**
* Check if the repo in the given directory is locked.
*
* @param {string} dir
* @returns {Promise<boolean>}
*/
declare function locked(dir: string): Promise<boolean>;
export {};
//# sourceMappingURL=memory.d.ts.map