export type OcctImportModuleConfig = { locateFile?: (path: string, prefix: string) => string; }; export type OcctImportResult = { success: boolean; reason?: string; }; export type OcctImportRuntime = { ReadStepFile: (content: Uint8Array, params: unknown) => OcctImportResult; ReadIgesFile: (content: Uint8Array, params: unknown) => OcctImportResult; ReadBrepFile: (content: Uint8Array, params: unknown) => OcctImportResult; }; export type OcctImportFactory = (config?: OcctImportModuleConfig) => Promise; /** * Loads occt-import-js IIFE bundle once per script URL and returns the runtime factory. */ export declare function loadOcctImportOnce(scriptUrl: string): Promise; export declare function buildOcctModuleConfig(wasmBaseUrl: string): OcctImportModuleConfig; /** * Single cached occt-import-js wasm runtime per (scriptUrl, wasmBaseUrl). Shared by STEP, IGES, and BREP loaders. */ export declare function getOcctImportRuntime(scriptUrl: string, wasmBaseUrl: string): Promise;