export declare class WellKnownMimeType { readonly string: string; readonly identifier: number; constructor(string: string, identifier: number); /** * Find the {@link WellKnownMimeType} for the given identifier (as an {@code int}). Valid * identifiers are defined to be integers between 0 and 127, inclusive. Identifiers outside of * this range will produce the {@link #UNPARSEABLE_MIME_TYPE}. Additionally, some identifiers in * that range are still only reserved and don't have a type associated yet: this method returns * the {@link #UNKNOWN_RESERVED_MIME_TYPE} when passing such an identifier, which lets call sites * potentially detect this and keep the original representation when transmitting the associated * metadata buffer. * * @param id the looked up identifier * @return the {@link WellKnownMimeType}, or {@link #UNKNOWN_RESERVED_MIME_TYPE} if the id is out * of the specification's range, or {@link #UNKNOWN_RESERVED_MIME_TYPE} if the id is one that * is merely reserved but unknown to this implementation. */ static fromIdentifier(id: number): WellKnownMimeType; /** * Find the {@link WellKnownMimeType} for the given {@link String} representation. If the * representation is {@code null} or doesn't match a {@link WellKnownMimeType}, the {@link * #UNPARSEABLE_MIME_TYPE} is returned. * * @param mimeType the looked up mime type * @return the matching {@link WellKnownMimeType}, or {@link #UNPARSEABLE_MIME_TYPE} if none * matches */ static fromString(mimeType: string): WellKnownMimeType; toString(): string; } export declare namespace WellKnownMimeType { const UNPARSEABLE_MIME_TYPE: WellKnownMimeType; const UNKNOWN_RESERVED_MIME_TYPE: WellKnownMimeType; const APPLICATION_AVRO: WellKnownMimeType; const APPLICATION_CBOR: WellKnownMimeType; const APPLICATION_GRAPHQL: WellKnownMimeType; const APPLICATION_GZIP: WellKnownMimeType; const APPLICATION_JAVASCRIPT: WellKnownMimeType; const APPLICATION_JSON: WellKnownMimeType; const APPLICATION_OCTET_STREAM: WellKnownMimeType; const APPLICATION_PDF: WellKnownMimeType; const APPLICATION_THRIFT: WellKnownMimeType; const APPLICATION_PROTOBUF: WellKnownMimeType; const APPLICATION_XML: WellKnownMimeType; const APPLICATION_ZIP: WellKnownMimeType; const AUDIO_AAC: WellKnownMimeType; const AUDIO_MP3: WellKnownMimeType; const AUDIO_MP4: WellKnownMimeType; const AUDIO_MPEG3: WellKnownMimeType; const AUDIO_MPEG: WellKnownMimeType; const AUDIO_OGG: WellKnownMimeType; const AUDIO_OPUS: WellKnownMimeType; const AUDIO_VORBIS: WellKnownMimeType; const IMAGE_BMP: WellKnownMimeType; const IMAGE_GIG: WellKnownMimeType; const IMAGE_HEIC_SEQUENCE: WellKnownMimeType; const IMAGE_HEIC: WellKnownMimeType; const IMAGE_HEIF_SEQUENCE: WellKnownMimeType; const IMAGE_HEIF: WellKnownMimeType; const IMAGE_JPEG: WellKnownMimeType; const IMAGE_PNG: WellKnownMimeType; const IMAGE_TIFF: WellKnownMimeType; const MULTIPART_MIXED: WellKnownMimeType; const TEXT_CSS: WellKnownMimeType; const TEXT_CSV: WellKnownMimeType; const TEXT_HTML: WellKnownMimeType; const TEXT_PLAIN: WellKnownMimeType; const TEXT_XML: WellKnownMimeType; const VIDEO_H264: WellKnownMimeType; const VIDEO_H265: WellKnownMimeType; const VIDEO_VP8: WellKnownMimeType; const APPLICATION_HESSIAN: WellKnownMimeType; const APPLICATION_JAVA_OBJECT: WellKnownMimeType; const APPLICATION_CLOUDEVENTS_JSON: WellKnownMimeType; const MESSAGE_RSOCKET_MIMETYPE: WellKnownMimeType; const MESSAGE_RSOCKET_ACCEPT_MIMETYPES: WellKnownMimeType; const MESSAGE_RSOCKET_AUTHENTICATION: WellKnownMimeType; const MESSAGE_RSOCKET_TRACING_ZIPKIN: WellKnownMimeType; const MESSAGE_RSOCKET_ROUTING: WellKnownMimeType; const MESSAGE_RSOCKET_COMPOSITE_METADATA: WellKnownMimeType; const TYPES_BY_MIME_ID: WellKnownMimeType[]; const TYPES_BY_MIME_STRING: Map; }