UNPKG

ipfs-repo

Version:
21 lines 507 B
export namespace FSLock { export { lock }; export { locked }; } export type LockCloser = import('../types').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=fs.d.ts.map