/**
 * @openfluke/welvet - Browser Entry Point
 *
 * Browser-only build without Node.js dependencies
 * Isomorphic wrapper that mirrors main.go WASM exports
 */
import { loadLoomWASMBrowser } from "./loader.browser.js";
export * from "./types.js";
export { loadLoomWASMBrowser };
/**
 * Initialize WASM for Browser environment
 */
export async function initBrowser() {
    await loadLoomWASMBrowser();
}
/**
 * Initialize - alias for initBrowser in browser context
 */
export async function init() {
    return initBrowser();
}
/**
 * Create a network from JSON config
 * Wrapper around the global createLoomNetwork function exposed by WASM
 */
export function createNetwork(config) {
    const jsonConfig = typeof config === "string"
        ? config
        : JSON.stringify(config);
    return createLoomNetwork(jsonConfig);
}
/**
 * Default export with all functions
 */
export default {
    init,
    initBrowser,
    createNetwork
};
