export interface FileInfo { cid: string; name: string; size: number; type: 'file' | 'directory'; pinned: boolean; } export interface PinInfo { cid: string; type: string; } /** * Add a file or directory to IPFS. */ export declare function addFile(filePath: string): Promise<{ cid: string; size: number; }>; /** * Retrieve a file from IPFS by CID. */ export declare function getFile(cid: string, outputPath?: string): Promise; /** * Download a file from IPFS to a temporary location. * Used for web downloads to preserve binary integrity. */ export declare function getFileToTemp(cid: string): Promise; /** * Read file content from IPFS (like cat). */ export declare function catFile(cid: string): string; /** * Pin a CID to ensure it persists in the local node. */ export declare function pinFile(cid: string): void; /** * Unpin a CID from the local node. */ export declare function unpinFile(cid: string): void; /** * List all pinned CIDs. */ export declare function listPins(): PinInfo[]; /** * Get detailed information about a CID. */ export declare function getFileInfo(cid: string): FileInfo | null; /** * List files in the MFS (Mutable File System) root. */ export declare function listMFS(mfsPath?: string): { name: string; size: number; cid: string; type: string; }[]; /** * Remove a file from MFS. */ export declare function removeMFSFile(mfsPath: string): void; /** * Format bytes to human-readable string. */ export declare function formatBytes(bytes: number): string; //# sourceMappingURL=file-manager.d.ts.map