///
import { FakeFS, PortablePath, ZipCompression, ZipFS } from '@yarnpkg/fslib';
interface MakeArchiveFromDirectoryOptions {
baseFs?: FakeFS;
prefixPath?: PortablePath | null;
compressionLevel?: ZipCompression;
}
export declare function makeArchiveFromDirectory(source: PortablePath, { baseFs, prefixPath, compressionLevel }?: MakeArchiveFromDirectoryOptions): Promise;
interface ExtractBufferOptions {
compressionLevel?: ZipCompression;
prefixPath?: PortablePath;
stripComponents?: number;
}
export declare function convertToZip(tgz: Buffer, opts: ExtractBufferOptions): Promise;
export declare function extractArchiveTo>(tgz: Buffer, targetFs: T, { stripComponents, prefixPath }?: ExtractBufferOptions): Promise;
export {};