/// /// /// import { type PathLike } from 'fs'; import { URL } from 'url'; import { type Binary } from 'near-sandbox'; import fs_extra from 'fs-extra'; import { type ChildProcessPromise } from './types'; export declare const rm: typeof fs_extra.rm; export declare const sandboxBinary: () => Promise; export declare function exists(d: PathLike): Promise; export declare function asyncSpawn(bin: string, ...args: string[]): ChildProcessPromise; export { spawn } from 'child_process'; export declare function debug(...args: unknown[]): void; export declare function txDebug(tx: string): void; export declare const copyDirection: (arg1: string, arg2: string) => Promise; export declare function ensureBinary(): Promise; export declare function isPathLike(something: any): something is URL | string; /** * Attempts to construct an absolute path to a file given a path relative to a * package.json. Searches through `module.paths` (Node's resolution search * paths) as described in https://stackoverflow.com/a/18721515/249801, then * falls back to using process.cwd() if still not found. Throws an acceptable * user-facing error if no file found. */ export declare function findFile(relativePath: string): Promise; //# sourceMappingURL=internal-utils.d.ts.map