/** * Serializer APIs for exporting IFC geometry and data. * * @module Serializers */ import type { File } from '../file.js'; /** Serializer progress in native processing order. */ export interface OperationProgress { phase: string; message: string; ratio?: number; current?: number; } import type { Settings } from '../geom/settings.js'; /** Formats supported by {@link exportToBuffer}. */ export type SerializerFormat = 'obj' | 'svg' | 'ttl'; /** Text buffers returned by a serializer; OBJ uses `secondary` for MTL data. */ export interface ExportResult { /** Primary serialized content. */ primary: string; /** Secondary content, used for the OBJ material file. */ secondary: string; } /** Geometry loading, serializer, cancellation, and progress options. */ export interface ExportOptions { /** Previously loaded geometry kernel. Defaults to `passthrough`. */ kernel?: string; /** Number of native geometry iterator threads. */ numThreads?: number; /** * Abort the export between geometry elements. Checked between synchronous * native calls; it cannot interrupt one native call already in progress. */ signal?: AbortSignal; /** Receive write and completion progress events. */ onProgress?(progress: OperationProgress): void; } /** * Serialize the file into in-memory text buffers. Load kernel, mapping and serializer plugins first. * * OBJ returns its material data in `secondary`; SVG and TTL return an empty * secondary buffer. The function returns `null` when the native iterator * cannot initialize and throws when a serializer or geometry element fails. */ export declare function exportToBuffer(file: File, geomSettings: Settings, format: SerializerFormat, options?: ExportOptions): Promise; //# sourceMappingURL=index.d.ts.map