import { CompileResult } from './types.js'; export * from './types.js'; /** * Ensures that the WASM module is loaded and ready for use. */ export declare function init(): Promise; /** * Compiles the given circuit from a file path, with optional boolean transformation. * * Files must be provided as a `files` object or a `readFile` function. * * @param {Object} opt - Options for compilation. * @param {string} opt.path - The path to the main circuit file. * @param {number | undefined} [opt.boolifyWidth] - Optional parameter for boolean transformation. * @param {Record | undefined} [opt.publicInputs] - Optional: Public inputs for the circuit. * @param {((path: string) => string) | undefined} [opt.readFile] - Optional: A function to read file contents. * @param {Record | undefined} [opt.files] - Optional: An object mapping file names to their contents. * @returns {CompileResult} - The result of the compilation process. * @throws {CompileError} - If the compilation encounters an error. */ export declare function compile(opt: { path: string; boolifyWidth?: number; publicInputs?: Record; } & FilesOrReadFile): CompileResult; type FilesOrReadFile = { files: Record; } | { readFile: (path: string) => string; }; //# sourceMappingURL=index.d.ts.map