import { a as MediaKind } from "./constants-DUpDbaN0.js"; //#region packages/media-core/src/mime.d.ts /** Maximum byte prefix passed to dependency MIME sniffers for bounded memory/CPU work. */ declare const FILE_TYPE_SNIFF_MAX_BYTES: number; /** Normalizes MIME strings by dropping parameters, lowercasing, and folding APNG to PNG. */ declare function normalizeMimeType(mime?: string | null): string | undefined; /** Returns the bounded buffer prefix used for dependency MIME sniffing. */ declare function sliceMimeSniffBuffer(buffer: Buffer): Buffer; /** Extracts a lowercase extension from a local path or HTTP URL pathname. */ declare function getFileExtension(filePath?: string | null): string | undefined; /** Maps a file path or URL extension to the preferred MIME type when known. */ declare function mimeTypeFromFilePath(filePath?: string | null): string | undefined; /** Returns true when a filename extension is a supported audio container. */ declare function isAudioFileName(fileName?: string | null): boolean; /** Detects the best MIME type from bytes, file path, and header metadata. */ declare function detectMime(opts: { buffer?: Buffer; headerMime?: string | null; filePath?: string; }): Promise; /** Returns the preferred file extension for a normalized or raw MIME string. */ declare function extensionForMime(mime?: string | null): string | undefined; /** Returns true when content type or filename identifies GIF media. */ declare function isGifMedia(opts: { contentType?: string | null; fileName?: string | null; }): boolean; /** Maps image format labels from encoders/probes to MIME types. */ declare function imageMimeFromFormat(format?: string | null): string | undefined; /** Normalizes a MIME string before classifying it into a media family. */ declare function kindFromMime(mime?: string | null): MediaKind | undefined; //#endregion export { imageMimeFromFormat as a, kindFromMime as c, sliceMimeSniffBuffer as d, getFileExtension as i, mimeTypeFromFilePath as l, detectMime as n, isAudioFileName as o, extensionForMime as r, isGifMedia as s, FILE_TYPE_SNIFF_MAX_BYTES as t, normalizeMimeType as u };