export type ParsedSpec = {
    kind: 'local';
    path: string;
} | {
    kind: 'registry';
    name: string;
    version?: string;
    spec: string;
};
/**
 * Parse a CLI input into either a local-path or an npm-registry spec.
 *
 * Local: starts with `./`, `../`, `/`, or is an existing directory path.
 * Registry: `<name>` | `<name>@<version>` | `@scope/<name>` | `@scope/<name>@<version>`
 *
 * The full spec string is preserved on the registry case so it can be passed
 * verbatim to `npm install` (which already understands dist-tags, ranges,
 * git URIs, tarball URLs, etc. — we don't re-parse those).
 */
export declare function parseSpec(input: string): ParsedSpec;
