package global; @:native("mime") @valueModuleOnly extern class Mime { /** Look up a mime type based on extension. If not found, uses the fallback argument if provided, and otherwise uses `default_type`. **/ static function lookup(path:String, ?fallback:String):String; /** Return a file extensions associated with a mime type. **/ static function extension(mime:String):Null; /** Load an Apache2-style ".types" file. **/ static function load(filepath:String):Void; static function define(mimes:global.mime.TypeMap):Void; static final charsets : global.mime.Charsets; static final default_type : String; }