export declare function installPackageDir(params: {
    sourceDir: string;
    targetDir: string;
    mode: "install" | "update";
    timeoutMs: number;
    logger?: {
        info?: (message: string) => void;
    };
    copyErrorPrefix: string;
    hasDeps: boolean;
    depsLogMessage: string;
    afterCopy?: () => void | Promise<void>;
    afterInstall?: () => void | Promise<void>;
}): Promise<{
    ok: true;
} | {
    ok: false;
    error: string;
}>;
