import type { Runtime } from './tiers.js'; export type Manager = Runtime | 'npm' | 'yarn'; export type Instead = { kind: 'cannot'; lockfile: string; tool: 'yarn-berry'; } | { empty: boolean; kind: 'cannot'; lockfile: string; tool: 'yarn-unreadable'; }; export type Choice = { kind: 'unknown'; } | { kind: 'use'; manager: Manager; } | Instead; export declare const chooseManager: (root: string, given: Manager | undefined) => Choice; export type Move = { at: string; block: string; name: string; to: string; }; export declare const commandsInstead: (instead: Instead, moves: readonly Move[]) => string[]; export declare const insteadRefusal: ({ instead, moves, root }: { instead: Instead; moves: readonly Move[]; root: string; }) => string; export declare const versionOf: (command: string, cwd: string) => Promise; export declare const yarnOneRefusal: (root: string) => Promise;