/** * Get the file extension from a path or URL. */ export declare function getFileExtension(filePath?: string | null): string | undefined; /** * Detect MIME type from buffer, headers, and/or file path. * Prioritizes sniffed types over extension-based detection. */ export declare function detectMime(opts: { buffer?: Buffer | Uint8Array; headerMime?: string | null; filePath?: string; }): Promise; /** * Get the file extension for a MIME type. */ export declare function extensionForMime(mime?: string | null): string | undefined; /** Lazily load byte detection only when a media caller supplies bytes. */ export declare function sniffMime(buffer?: Buffer | Uint8Array): Promise;