export declare class MediaType { type: MediaType.Type; tree: MediaType.Tree; subtype: string; suffix?: MediaType.Suffix; parameters: Record; constructor(params: { type: MediaType.Type; tree?: MediaType.Tree; subtype: string; suffix?: MediaType.Suffix; parameters?: Record; }); parameter(name: MediaType.ParameterName | string): string | undefined; with(params: { type?: MediaType.Type; tree?: MediaType.Tree; subtype?: string; suffix?: MediaType.Suffix; parameters?: Record; }): MediaType; withParameter(parameter: MediaType.ParameterName | string, value: string): MediaType; get value(): string; compatible(other: MediaType): boolean; equals(other: MediaType): boolean; toString(): string; } export declare namespace MediaType { enum Type { Application = "application", Audio = "audio", Example = "example", Font = "font", Image = "image", Message = "message", Model = "model", Multipart = "multipart", Text = "text", Video = "video", Any = "*" } namespace Type { function from(value: string): Type | undefined; } enum Tree { Standard = "", Vendor = "vnd.", Personal = "prs.", Unregistered = "x.", Obsolete = "x-", Any = "*" } namespace Tree { function from(value: string): Tree | undefined; } enum Suffix { XML = "xml", JSON = "json", BER = "ber", DER = "der", FastInfoSet = "fastinfoset", WBXML = "wbxml", Zip = "zip", CBOR = "cbor" } namespace Suffix { function from(value: string): Suffix | undefined; } enum ParameterName { CharSet = "charset" } function from(value?: string | null): MediaType; function from(value: string | null | undefined, def: MediaType): MediaType; const Plain: MediaType; const HTML: MediaType; const JSON: MediaType; const YAML: MediaType; const CBOR: MediaType; const EventStream: MediaType; const OctetStream: MediaType; const WWWFormUrlEncoded: MediaType; const X509CACert: MediaType; const X509UserCert: MediaType; const Any: MediaType; const AnyText: MediaType; const AnyImage: MediaType; const AnyAudio: MediaType; const AnyVideo: MediaType; const JSONStructured: MediaType; const XMLStructured: MediaType; const Problem: MediaType; const JsonPatch: MediaType; const MergePatch: MediaType; }