import { IfcOpenShellError, IfcOpenShellErrorCode, IfcOpenShellErrorKind, abortError, isIfcOpenShellAbortError } from '@ifcopenshell/wasm/api'; import type { EmscriptenFS, IfcOpenshellModule, InitOptions, PluginKind } from './types.js'; /** Initialized IfcOpenShell runtime and its ergonomic low-level API. */ export interface IfcOpenShell { readonly raw: IfcOpenshellModule; readonly fs: EmscriptenFS | null; loadPlugin(kind: PluginKind, id: string): Promise; loadedPlugins(): string[]; } export { IfcOpenShellError, IfcOpenShellErrorCode, IfcOpenShellErrorKind, abortError, isIfcOpenShellAbortError, }; /** * Initialize the packaged or explicitly configured WASM runtime. * * Plugins are loaded lazily through {@link IfcOpenShell.loadPlugin}. * File and Iterator support explicit disposal; other handles use GC cleanup. * * @param options Asset locations and optional plugin-loader overrides. * @returns An initialized, frozen runtime facade. */ export declare function init(options?: InitOptions): Promise; /** Native module, available after awaiting init(). */ export declare let ifcopenshell: IfcOpenshellModule; /** Retrieve the loaded schema declaration by its full identifier. */ export declare function schemaByName(name: string): import("ifcopenshell-api").IfcOpenshellSchema | null; /** Emscripten filesystem, available after awaiting init(). */ export declare let fs: EmscriptenFS | null; //# sourceMappingURL=init.d.ts.map