import type { AddToStoreResult, FilesIndex, FileWriteResult, PackageFileInfo, PackageFiles, SideEffects, SideEffectsDiff } from '@pnpm/store.cafs-types'; import { buildFileMapsFromIndex, checkPkgFilesIntegrity, type Integrity, type PackageFilesIndex, type VerifyResult } from './checkPkgFilesIntegrity.js'; import { contentPathFromHex, type FileType, getFilePathByModeInCafs } from './getFilePathInCafs.js'; import { normalizeBundledManifest } from './normalizeBundledManifest.js'; export declare const HASH_ALGORITHM = "sha512"; export { type BundledManifest } from '@pnpm/types'; export { normalizeBundledManifest }; export { buildFileMapsFromIndex, checkPkgFilesIntegrity, contentPathFromHex, type FilesIndex, type FileType, getFilePathByModeInCafs, type Integrity, type PackageFileInfo, type PackageFiles, type PackageFilesIndex, type SideEffects, type SideEffectsDiff, type VerifyResult, }; export type CafsLocker = Map; export interface CreateCafsOpts { ignoreFile?: (filename: string) => boolean; cafsLocker?: CafsLocker; } export interface CafsFunctions { addFilesFromDir: (dirname: string, opts?: { files?: string[]; readManifest?: boolean; includeNodeModules?: boolean; }) => AddToStoreResult; addFilesFromTarball: (tarballBuffer: Buffer, readManifest?: boolean, ignore?: (filename: string) => boolean) => AddToStoreResult; addFile: (buffer: Buffer, mode: number) => FileWriteResult; getFilePathByModeInCafs: (digest: string, mode: number) => string; } export declare function createCafs(storeDir: string, { ignoreFile, cafsLocker }?: CreateCafsOpts): CafsFunctions;