/** * Minimal magic bytes detection for common media types. * This can be replaced with `file-type` package (https://npm.im/file-type) * if more comprehensive detection is needed. The API is designed to be * compatible: fileTypeFromBuffer(data) returns { mime: string, ext: string } | undefined */ export interface FileTypeResult { mime: string; ext: string; } export declare function fileTypeFromBuffer(data: Uint8Array): FileTypeResult | undefined;