UNPKG

mcard-js

Version:

MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers

16 lines 700 B
import { BaseDetector } from './BaseDetector'; export declare class BinarySignatureDetector implements BaseDetector { readonly contentTypeName = "binary"; private static readonly SIGNATURES; detect(contentSample: string | Uint8Array, lines: string[], firstLine: string, fileExtension?: string): number; getMimeType(contentSample: string | Uint8Array, lines: string[], firstLine: string, fileExtension?: string): string | null; /** * Detect MIME type directly from bytes. */ detectFromBytes(bytes: Uint8Array): string; private toBytes; private startsWith; private detectRiffFormat; private detectZipType; } //# sourceMappingURL=BinaryDetector.d.ts.map