/** * MIME type lookup table for file sending. * Superset of WhatsApp and Telegram MIME maps. */ export declare const MIME_MAP: Record; /** * Look up MIME type for a file extension. * Falls back to "application/octet-stream" for unknown extensions. */ export declare function lookupMime(ext: string): string; /** * The extension a MIME type should be saved under, WITHOUT a leading dot. * * The reverse direction needs to exist here rather than at each call site. Both * places that had their own answer got it wrong in the same way: a short list of * types they had thought about, and `bin` for everything else — so a video * arrived as `.bin`, unplayable until renamed by hand. A table that already * knows every type it accepts should also know what to call it on the way back. * * Falls back to `bin`, which is honest for a type nothing here recognises. */ export declare function extForMime(mime: string): string; //# sourceMappingURL=mime.d.ts.map