import type { PackageJson } from "./types-internal.ts"; export declare function formatMs(ms: number): string; export declare function getFileSize(filePath: string): Promise<{ size: number; }>; export declare function formatLog(message: string): string; /** * Walks up the directory tree to find and parse the nearest package.json. * @param startDir The directory to start searching from. Defaults to process.cwd(). * @returns A promise resolving to the parsed package.json, or null if not found. */ export declare function readHostPackageJson(startDir?: string): Promise; export declare function readPluginPackageJson(): T | null; /** * Ensures a directory is empty by deleting it entirely and recreating it. * @param dirPath The path to the directory */ export declare function resetDir(dirPath: string): Promise;