export class LocalTransport { /** * @param {{reporter?: import('../core/reporter.js').Reporter}} [opts] */ constructor({ reporter }?: { reporter?: import("../core/reporter.js").Reporter; }); /** @type {import('../core/reporter.js').Reporter} */ reporter: import("../core/reporter.js").Reporter; /** * @param {string} targetPath * @returns {Promise} */ mkdirp(targetPath: string): Promise; /** * @param {string} targetPath * @returns {Promise} */ exists(targetPath: string): Promise; /** * @param {string} target * @param {string} linkPath * @param {string} [type] * @returns {Promise} */ symlink(target: string, linkPath: string, type?: string): Promise; /** * @param {string} linkPath * @returns {Promise} */ readlink(linkPath: string): Promise; /** * @param {string} targetPath * @returns {Promise} */ realpath(targetPath: string): Promise; /** * @param {string} targetPath * @returns {Promise} */ isDirectory(targetPath: string): Promise; /** * Returns non-following filesystem metadata for integrity-sensitive walks. * * @param {string} targetPath * @returns {Promise} */ stat(targetPath: string): Promise; /** * @param {string} targetPath * @returns {Promise} */ rm(targetPath: string): Promise; /** * @param {string} from * @param {string} to * @returns {Promise} */ rename(from: string, to: string): Promise; /** * @param {string} filePath * @param {string} content * @returns {Promise} */ writeFile(filePath: string, content: string): Promise; /** * @param {string} filePath * @param {string} content * @returns {Promise} */ writeFileExclusive(filePath: string, content: string): Promise; /** * Removes a file only while it still contains the exact expected content. * Conditional removers are serialized by a kernel-owned advisory lock, which * is released if the remover is interrupted. * * @param {string} filePath * @param {string} expectedContent * @returns {Promise} */ removeFileIfContent(filePath: string, expectedContent: string): Promise; /** * @param {string} filePath * @returns {Promise} */ readFile(filePath: string): Promise; /** * @param {string} filePath * @returns {Promise} */ readFileBuffer(filePath: string): Promise; /** * @param {string} targetPath * @returns {Promise} */ list(targetPath: string): Promise; /** * Lists exact entry names for integrity-sensitive directory walks. * * @param {string} targetPath * @returns {Promise} */ listDirectory(targetPath: string): Promise; /** * @param {string} from * @param {string} to * @param {{exclude?: string[]}} [opts] * @returns {Promise} */ copyDir(from: string, to: string, { exclude }?: { exclude?: string[]; }): Promise; /** * @param {string} command * @param {{cwd?: string, env?: Record, secretEnv?: Record}} [opts] * @returns {Promise} */ run(command: string, { cwd, env, secretEnv }?: { cwd?: string; env?: Record; secretEnv?: Record; }): Promise; } //# sourceMappingURL=local-transport.d.ts.map