import { type UserInstallStamp } from "../cli/update.js"; type PostinstallStatus = "noop-local" | "noop-same-version" | "noop-missing-version" | "hinted"; export interface PostinstallResult { status: PostinstallStatus; version: string | null; } interface PostinstallDependencies { env: NodeJS.ProcessEnv; getCurrentVersion: () => Promise; log: (message: string) => void; readStamp: () => Promise; writeStamp: (stamp: UserInstallStamp) => Promise; } export declare function isGlobalInstallLifecycle(env?: NodeJS.ProcessEnv): boolean; export declare function runPostinstall(dependencies?: Partial): Promise; export declare function main(): Promise; export {}; //# sourceMappingURL=postinstall.d.ts.map