import * as tar from 'tar'; export type ExtractOptions = Omit; export interface ExtractResult { /** * When `'hit'`, the data was already present in cache and was returned from * cache. * * When `'miss'`, the data was extracted into the cache and returned from * cache. * * When `undefined`, the cache is not enabled. */ readonly cache?: 'hit' | 'miss'; } /** * Extracts the content of a tarball, possibly caching it on disk. * * @param file is the path to the tarball to be extracted. * @param options are options to pass to `tar.extract` * @param comments are included in the cache key, when caching is enabled. * * @returns the result of the extraction. */ export declare function extract(file: string, outDir: string, options: ExtractOptions, ...comments: readonly string[]): ExtractResult; /** @internal */ export declare function getPackageCacheEnabled(): boolean; /** @internal */ export declare function setPackageCacheEnabled(value: boolean): void; //# sourceMappingURL=index.d.ts.map