import JSZip from 'jszip'; /** * Represents a content type mapping */ export interface ContentTypeInfo { extension?: string; partName?: string; contentType: string; } /** * Maps content types to extensions and part paths */ export interface ContentTypeMap { defaults: Map; overrides: Map; allItems: ContentTypeInfo[]; } /** * Parses [Content_Types].xml to build a map of content types * @param zip JSZip instance of the opened archive */ export declare function getContentTypeMap(zip: JSZip): Promise; /** * Gets the content type for a given part path * @param contentTypeMap Content type map from getContentTypeMap() * @param partPath Path of the part to look up */ export declare function getContentType(contentTypeMap: ContentTypeMap, partPath: string): string | null; //# sourceMappingURL=content-types.d.ts.map