export declare const DEFAULT_WIRE_PACKAGE_NAME = "@cobuild/wire"; type DependencySection = "dependencies" | "devDependencies"; type PackageJsonShape = { dependencies?: Record; devDependencies?: Record; }; type DependencySpec = { section: DependencySection; currentSpec: string; }; type RunCommand = (command: string, args: string[], cwd: string) => string; export type EnsurePublishedDeps = { existsSync?: (filePath: string) => boolean; readFileSync?: (filePath: string, encoding: "utf8") => string; runCommand?: RunCommand; log?: (message: string) => void; }; export type EnsurePublishedOptions = { packageDir: string; installRoot: string; packageName?: string; }; export type EnsurePublishedResult = { changed: false; reason: "missing-package-json" | "missing-dependency" | "up-to-date"; } | { changed: true; reason: "updated"; message: string; }; export type CliArgs = { packageDir: string; installRoot: string; packageName: string; }; export declare function parseCliArgs(argv: string[]): CliArgs; export declare function normalizePnpmVersionOutput(raw: string): string; export declare function resolveDependencySpec(packageJson: PackageJsonShape, packageName: string): DependencySpec | null; export declare function isLocalSpec(spec: string): boolean; export declare function ensurePublishedWireDependency(options: EnsurePublishedOptions, deps?: EnsurePublishedDeps): EnsurePublishedResult; export declare function runCli(argv?: string[], deps?: EnsurePublishedDeps): number; export declare function isDirectExecution(importMetaUrl: string, argvEntry: string | undefined): boolean; export {};