"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MIME_TYPES = void 0;
exports.mimeFromPath = mimeFromPath;
/** Shared MIME type map used by file serving routes and storage backends. */
exports.MIME_TYPES = {
    '.png': 'image/png',
    '.jpg': 'image/jpeg',
    '.jpeg': 'image/jpeg',
    '.gif': 'image/gif',
    '.svg': 'image/svg+xml',
    '.webp': 'image/webp',
    '.pdf': 'application/pdf',
    '.json': 'application/json',
    '.txt': 'text/plain',
    '.html': 'text/html',
    '.css': 'text/css',
    '.js': 'application/javascript',
    '.csv': 'text/csv',
    '.xml': 'application/xml',
    '.yaml': 'text/yaml',
    '.yml': 'text/yaml',
    '.md': 'text/markdown',
    '.ts': 'text/typescript',
    '.tsx': 'text/typescript',
    '.jsx': 'application/javascript',
    '.sh': 'text/x-shellscript',
    '.py': 'text/x-python',
    '.rb': 'text/x-ruby',
    '.go': 'text/x-go',
    '.rs': 'text/x-rust',
    '.java': 'text/x-java',
    '.c': 'text/x-c',
    '.cpp': 'text/x-c++',
    '.h': 'text/x-c',
    '.sql': 'text/x-sql',
    '.toml': 'text/toml',
    '.env': 'text/plain',
    '.log': 'text/plain',
    '.ini': 'text/plain',
    '.cfg': 'text/plain',
    '.conf': 'text/plain',
    '.scss': 'text/css',
    '.zip': 'application/zip',
    '.gz': 'application/gzip',
};
/** Resolve MIME type from file extension. */
function mimeFromPath(filePath) {
    const ext = filePath.includes('.') ? '.' + filePath.split('.').pop().toLowerCase() : '';
    return exports.MIME_TYPES[ext] || 'application/octet-stream';
}
