type SupportedPm = "npm" | "yarn" | "pnpm";
interface DetectResult {
    name: SupportedPm;
    version?: string;
}
export declare function main({ forceTo, onDetected, }: {
    forceTo?: SupportedPm;
    onDetected?: (pm: DetectResult | undefined) => void;
}): Promise<number>;
export {};
//# sourceMappingURL=main.d.ts.map