UNPKG

filesops

Version:

Advanced file operations library with search, type detection, size calculation, and permission utilities

33 lines 1.05 kB
import { FileTypeInfo } from './types'; /** * File type detection and analysis */ export declare class FileTypeDetector { private static readonly mimeTypes; private static readonly categories; private static readonly descriptions; private static readonly binaryExtensions; private static readonly executableExtensions; /** * Detect file type information from file path */ static detectFromPath(filePath: string): FileTypeInfo; /** * Detect file type from file content (magic numbers) */ static detectFromContent(filePath: string): Promise<FileTypeInfo>; private static detectMagicNumbers; /** * Check if file is likely to be text based on content */ static isTextFile(filePath: string): Promise<boolean>; /** * Get all supported file extensions */ static getSupportedExtensions(): string[]; /** * Get file extensions by category */ static getExtensionsByCategory(category: string): string[]; } //# sourceMappingURL=fileType.d.ts.map