/// /// import { AutoDetectedUserInstructions, ImageType } from "../types"; import { PluginOptions } from "../types"; import { ExtractAction, ExtractedLayers, ExtractionResult, ImageConfig, SymlinkMap } from "./types"; export { InvalidArchiveError } from "./generic-archive-extractor"; /** * Given a path on the file system to a image archive, open it up to inspect the layers * and look for specific files. File content can be transformed with a custom callback function if needed. * @param fileSystemPath Path to an existing archive. * @param extractActions This denotes a file pattern to look for and how to transform the file if it is found. * By default the file is returned raw if no processing is desired. */ export declare function extractImageContent(imageType: ImageType, fileSystemPath: string, extractActions: ExtractAction[], options: Partial): Promise; export declare function getRootFsLayersFromConfig(imageConfig: ImageConfig): string[]; export declare function getPlatformFromConfig(imageConfig: ImageConfig): string | undefined; export declare function getDetectedLayersInfoFromConfig(imageConfig: any): AutoDetectedUserInstructions; export declare function getUserInstructionLayersFromConfig(imageConfig: any): any; /** * Merge per-layer symlink maps into a single view of the running container. * Layers arrive newest-first (see generic-archive / OCI extractors) and the * first layer seen wins, mirroring layersWithLatestFileModifications. A * whiteout entry only hides paths in lower (older) layers; a whiteout and an * entry for the same path may coexist within one layer (e.g. a directory * replaced by a symlink), in which case that layer's own entry survives. */ export declare function symlinksWithLatestModifications(symlinkLayers?: SymlinkMap[], fileLayers?: ExtractedLayers[]): SymlinkMap | undefined; export { isWhitedOutFile } from "./layer"; export declare function getContentAsBuffer(extractedLayers: ExtractedLayers, extractAction: ExtractAction): Buffer | undefined; export declare function getContentAsString(extractedLayers: ExtractedLayers, extractAction: ExtractAction): string | undefined;