import JSZip from 'jszip'; import { ValidationError } from './errors'; /** * Supported unit types in 3MF */ export declare enum Unit { Micron = "micron", Millimeter = "millimeter", Centimeter = "centimeter", Inch = "inch", Foot = "foot", Meter = "meter" } /** * Interface representing the model element and its attributes */ export interface Model { unit: Unit; language?: string; requiredExtensions?: string[]; recommendedExtensions?: string[]; resources?: any; build?: any; metadata?: any[]; } /** * Error thrown when model parsing or validation fails */ export declare class ModelParseError extends ValidationError { constructor(message: string); } /** * Parses the model XML content * @param modelXmlContent The XML content of the 3D model part * @returns Parsed Model object * @throws ModelParseError if parsing fails or validation errors occur */ export declare function parseModel(modelXmlContent: string): Model; /** * Gets the model object from a 3MF archive * @param zip JSZip instance of the opened archive * @param modelPath Path to the 3D model part within the archive * @returns Promise resolving to the parsed Model object */ export declare function getModel(zip: JSZip, modelPath: string): Promise; //# sourceMappingURL=model.d.ts.map