import { type NpmIntegrityDrift, type NpmSpecResolution } from "./install-source-utils.js"; import { type NpmIntegrityDriftPayload } from "./npm-integrity.js"; type NpmSpecArchiveInstallFlowResult = { ok: false; error: string; } | { ok: true; installResult: TResult; npmResolution: NpmSpecResolution; integrityDrift?: NpmIntegrityDrift; }; export declare function installFromNpmSpecArchiveWithInstaller(params: { tempDirPrefix: string; spec: string; timeoutMs: number; expectedIntegrity?: string; onIntegrityDrift?: (payload: NpmIntegrityDriftPayload) => boolean | Promise; warn?: (message: string) => void; installFromArchive: (params: TArchiveInstallParams) => Promise; archiveInstallParams: Omit; }): Promise>; export type NpmSpecArchiveFinalInstallResult = { ok: false; error: string; } | Exclude | (Extract & { npmResolution: NpmSpecResolution; integrityDrift?: NpmIntegrityDrift; }); export declare function finalizeNpmSpecArchiveInstall(flowResult: NpmSpecArchiveInstallFlowResult): NpmSpecArchiveFinalInstallResult; export declare function installFromNpmSpecArchive(params: { tempDirPrefix: string; spec: string; timeoutMs: number; expectedIntegrity?: string; onIntegrityDrift?: (payload: NpmIntegrityDriftPayload) => boolean | Promise; warn?: (message: string) => void; installFromArchive: (params: { archivePath: string; }) => Promise; }): Promise>; export {};