import type { Scene } from "three"; import type { BitByBitBase } from "./bitbybit-base"; import { type InitBitByBitOptions, type InitKernelsResult } from "@bitbybit-dev/core"; export { type InitBitByBitOptions, type InitKernelsResult } from "@bitbybit-dev/core"; /** * Initialize BitByBit with Three.js scene in a single call. * This is the recommended way to set up BitByBit for Three.js projects. * * Workers are automatically created from CDN if not provided in options. * If you don't specify loadFonts, fonts will NOT be loaded (empty array is passed). * * @param scene - Three.js Scene instance * @param bitbybit - BitByBitBase instance * @param options - Initialization options including which kernels to enable * @returns Promise with initialization result and the bitbybit instance * * @example * ```typescript * import { BitByBitBase, initBitByBit } from "@bitbybit-dev/threejs"; * * const scene = new Scene(); * const bitbybit = new BitByBitBase(); * * await initBitByBit(scene, bitbybit, { * enableOCCT: true, * enableJSCAD: true, * enableManifold: false, * loadFonts: ["roboto"], // Optional: specify fonts, or omit to skip loading * }); * * // Now you can use bitbybit.occt, bitbybit.jscad, etc. * ``` */ export declare function initBitByBit(scene: Scene, bitbybit: BitByBitBase, options: InitBitByBitOptions): Promise; /** * @deprecated Use initBitByBit instead for simpler initialization. * This function is kept for backward compatibility. */ export declare function initKernels(scene: Scene, bitbybit: BitByBitBase, options: InitBitByBitOptions, workers?: { occtWorker?: Worker; jscadWorker?: Worker; manifoldWorker?: Worker; }): Promise;