import type { PlannedTarball } from './materializer.js'; export interface TarballLockfileFilterResult { kept: PlannedTarball[]; dropped: PlannedTarball[]; } /** * Splits a planned tarball set by `name@version` presence in a lockfile. * * Used after the bundled lockfile has been pruned to the code bundle's * contents: a pruned lockfile's resolutions are verified to be a subset of * the original's (no new entries, no version changes), so filtering the * originally planned set by presence is exactly equivalent to re-running * spec matching against the pruned lockfile. * * Fail-safe: if the lockfile content cannot be parsed — unexpected, since * a pruned lockfile has already passed the pruner's own parse and * verification — every tarball is kept (the pre-filter superset is the * previous behavior) and the failure is debug-logged. */ export declare function filterTarballsByLockfile(tarballs: PlannedTarball[], lockfileContent: string, lockfileName: string): TarballLockfileFilterResult;