// Minimal ambient types for the `occt-import-js` WASM loader. The package // ships no .d.ts of its own. Types follow the shape documented in the project // README and the `three_viewer.html` example. declare module "occt-import-js" { export interface OcctArrayAttribute { array: number[] | Float32Array | Uint32Array; } export interface OcctBrepFace { first: number; last: number; color?: [number, number, number] | null; } export interface OcctMesh { name?: string; color?: [number, number, number] | null; brep_faces?: OcctBrepFace[]; attributes: { position: OcctArrayAttribute; normal?: OcctArrayAttribute; }; index: OcctArrayAttribute; } export interface OcctResult { success: boolean; meshes: OcctMesh[]; root?: unknown; } export interface OcctModule { ReadStepFile: (buffer: Uint8Array, params: unknown) => OcctResult; ReadBrepFile?: (buffer: Uint8Array, params: unknown) => OcctResult; ReadIgesFile?: (buffer: Uint8Array, params: unknown) => OcctResult; } export interface OcctInitOptions { locateFile?: (filename: string) => string; } const factory: (options?: OcctInitOptions) => Promise; export default factory; }