import { URI } from '../../base/common/uri'; export declare namespace Mimes { const text = "text/plain"; const binary = "application/octet-stream"; const unknown = "application/unknown"; const markdown = "text/markdown"; const latex = "text/latex"; } export interface ITextMimeAssociation { readonly id: string; readonly mime: string; readonly filename?: string; readonly extension?: string; readonly filepattern?: string; readonly firstline?: RegExp; readonly userConfigured?: boolean; } /** * Associate a text mime to the registry. */ export declare function registerTextMime(association: ITextMimeAssociation, warnOnOverwrite?: boolean): void; /** * Clear text mimes from the registry. */ export declare function clearTextMimes(onlyUserConfigured?: boolean): void; /** * Given a file, return the best matching mime type for it */ export declare function guessMimeTypes(resource: URI | null, firstLine?: string): string[]; export declare function isUnspecific(mime: string[] | string): boolean; export declare function getMediaOrTextMime(path: string): string | undefined; export declare function getMediaMime(path: string): string | undefined; export declare function getExtensionForMimeType(mimeType: string): string | undefined; export declare function normalizeMimeType(mimeType: string): string; export declare function normalizeMimeType(mimeType: string, strict: true): string | undefined; //# sourceMappingURL=mime.d.ts.map