/** Detects MIME type from file header bytes. */ export declare function detectMimeFromBuffer(buf: Buffer): string | null; /** Ensures on-disk upload content matches an allowed MIME (magic bytes, not client header). */ export declare function assertAllowedFileMagic(filePath: string, allowedMimes: Set): void; /** Removes an uploaded file after failed validation. */ export declare function removeUploadedFile(filePath: string): void; //# sourceMappingURL=fileMagic.d.ts.map