mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
15 lines • 566 B
TypeScript
export declare class BinarySignatureDetector {
static readonly SIGNATURES: Record<string, string>;
static readonly OLE_SIGNATURE = "d0cf11e0a1b11ae1";
/**
* Helper to convert hex string to Uint8Array for easy comparison if needed,
* but we will convert input bytes to hex for lookup.
*/
detect(content: Uint8Array): string | null;
detectFromBytes(content: Uint8Array): string;
private detectRiffFormat;
private startsWithAscii;
private toAscii;
private toHex;
}
//# sourceMappingURL=BinarySignatureDetector.d.ts.map