import { type InstallMethod } from "./config.ts";
import type { InlineExtension } from "./core/extensions/types.ts";
export type PackageCommand = "install" | "remove" | "update" | "list";
export declare function cleanupManagedInstall(): void;
export interface SelfUpdatePlan {
    packageName: string;
    installSpec: string;
    version: string;
    shouldRun: boolean;
    note?: string;
}
/**
 * The latest-version lookup failed. A standalone binary cannot update itself in place, and since senpi#6633 its lookup
 * asks the unauthenticated GitHub API (60 requests per hour per IP), so a failed lookup points it at the download page
 * instead of failing `update --self`. Every other install still fails, because it would run an install command.
 */
export declare function selfUpdatePlanAfterLookupFailure(installMethod: InstallMethod, reason: string): SelfUpdatePlan;
export interface PackageCommandRuntimeOptions {
    extensionFactories?: InlineExtension[];
}
export declare function handleConfigCommand(args: string[], runtimeOptions?: PackageCommandRuntimeOptions): Promise<boolean>;
export declare function handlePackageCommand(args: string[], runtimeOptions?: PackageCommandRuntimeOptions): Promise<boolean>;
//# sourceMappingURL=package-manager-cli.d.ts.map